From 91654989ff4c7abf4a144f7f9a49bf6fa81c2d2a Mon Sep 17 00:00:00 2001 From: spx Date: Wed, 17 Aug 2011 18:51:43 +0000 Subject: [PATCH] Code cleanup. --- Library/Rainmeter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Rainmeter.cpp b/Library/Rainmeter.cpp index 630694c2..f0995b24 100644 --- a/Library/Rainmeter.cpp +++ b/Library/Rainmeter.cpp @@ -3162,7 +3162,8 @@ BOOL CRainmeter::ExecuteBang(const std::wstring& bang, const std::wstring& arg, ExecuteCommand(command.c_str(), meterWindow); } } - else if (arg[i] == L'"' && arg[i + 1] == L'"' && arg[i + 2] == L'"') + else if (isize > (i + 2) && + arg[i] == L'"' && arg[i + 1] == L'"' && arg[i + 2] == L'"') { i += 3;