[xpcom] Fix GetWindowsFolder storage.
parent
983728fddc
commit
4ee531fa10
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue