Fixed silly mistake.

This commit is contained in:
Birunthan Mohanathas 2011-11-27 18:51:39 +00:00
parent 30117612d1
commit 3caeff7049
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ bool CopyFiles(const std::wstring& strFrom, const std::wstring& strTo, bool bMov
FOF_NO_UI | FOF_NOCONFIRMATION | FOF_ALLOWUNDO FOF_NO_UI | FOF_NOCONFIRMATION | FOF_ALLOWUNDO
}; };
return SHFileOperation(&fo) != 0; return SHFileOperation(&fo) == 0;
} }
OSPLATFORM GetOSPlatform() OSPLATFORM GetOSPlatform()

View File

@ -122,7 +122,7 @@ int Rainstaller(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine,
str += L"Rainmeter.exe"; str += L"Rainmeter.exe";
if (_waccess(str.c_str(), 0) != 0) if (_waccess(str.c_str(), 0) != 0)
{ {
std::wstring error = L"Unable to locate Rainmeter.\nRainstaller.exe needs to be in the \\Addons\\Rainstaller\\ folder."; std::wstring error = L"Unable to locate Rainmeter.";
MessageBox(NULL, error.c_str(), APP_NAME, MB_ERROR); MessageBox(NULL, error.c_str(), APP_NAME, MB_ERROR);
return 1; return 1;
} }