diff --git a/Application/Application.vcproj b/Application/Application.vcproj index 632f2bf5..d11e0873 100644 --- a/Application/Application.vcproj +++ b/Application/Application.vcproj @@ -290,7 +290,7 @@ /> GetPath(); - command += L"\\Addons\\RainThemes\\RainThemes.exe"; + std::wstring command = L"\"" + Rainmeter->GetPath(); + command += L"\\Addons\\RainThemes\\RainThemes.exe\""; LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL); } else if(wParam == ID_CONTEXT_QUIT) @@ -495,8 +495,8 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA const std::vector& themes = Rainmeter->GetAllThemes(); if (pos >= 0 && pos < themes.size()) { - std::wstring command = Rainmeter->GetPath(); - command += L"\\Addons\\RainThemes\\RainThemes.exe /load \""; + std::wstring command = L"\"" + Rainmeter->GetPath(); + command += L"\\Addons\\RainThemes\\RainThemes.exe\" /load \""; command += themes[pos]; command += L"\""; LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL); diff --git a/revision-number.h b/revision-number.h index f03afe06..2e541cfb 100644 --- a/revision-number.h +++ b/revision-number.h @@ -1,2 +1,2 @@ #pragma once -const int revision_number = 178; \ No newline at end of file +const int revision_number = 180; \ No newline at end of file