From d6444b7dffc70f047b0b72efe55c99b4bdfca573 Mon Sep 17 00:00:00 2001 From: Kimmo Pekkola Date: Wed, 12 Aug 2009 19:02:51 +0000 Subject: [PATCH] RainThemes wasn't started correctly if the path had spaces. Fixed. --- Application/Application.vcproj | 4 ++-- Library/TrayWindow.cpp | 8 ++++---- revision-number.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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