From 12be2ffad1f7522e13fe3e48eb230885b64a429f Mon Sep 17 00:00:00 2001 From: spx Date: Thu, 18 Aug 2011 02:27:52 +0000 Subject: [PATCH] Fixed PLAY command issue in r904. --- Library/Rainmeter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Rainmeter.cpp b/Library/Rainmeter.cpp index f0995b24..3c0e54f3 100644 --- a/Library/Rainmeter.cpp +++ b/Library/Rainmeter.cpp @@ -3269,7 +3269,7 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow) if (!strCommand.empty()) { - const WCHAR* command = strCommand.c_str(); + command = strCommand.c_str(); if (command[0] == L'!' && Rainmeter->GetDummyLitestep()) // Bangs { @@ -3316,7 +3316,7 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow) command += 4; // Skip LOOP } - if (command[1] == L' ') + if (command[0] == L' ') { command += 1; // Skip the space strCommand = command;