[xpcom] Fix GetWindowsFolder storage.

master
Fedor 2020-11-26 05:42:05 +02:00
parent 983728fddc
commit 4ee531fa10
1 changed files with 2 additions and 2 deletions

View File

@ -102,9 +102,9 @@ GetWindowsFolder(int aFolder, nsIFile** aFile)
{
WCHAR path_orig[MAX_PATH + 3];
WCHAR* path = path_orig + 1;
HRESULT result = SHGetSpecialFolderPathW(nullptr, path, aFolder, true);
BOOL result = SHGetSpecialFolderPathW(nullptr, path, aFolder, true);
if (!SUCCEEDED(result)) {
if (!result) {
return NS_ERROR_FAILURE;
}