summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Major <dmajor@mozilla.com>2020-11-18 22:21:22 +0000
committerMoonchild <moonchild@palemoon.org>2020-11-19 22:45:53 +0000
commit556a15567d9de0d019065eeb27597acf2d760ef5 (patch)
treec1844ad17203e5532b45816187d3aa931dce0d1c
parent95d93b55c9299a9f962b80fd0e32607233cbaf9d (diff)
downloaduxp-556a15567d9de0d019065eeb27597acf2d760ef5.tar.gz
[xpcom] Fix GetWindowsFolder storage
-rw-r--r--xpcom/io/SpecialSystemDirectory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpcom/io/SpecialSystemDirectory.cpp b/xpcom/io/SpecialSystemDirectory.cpp
index c174b4ac73..1c020c4262 100644
--- a/xpcom/io/SpecialSystemDirectory.cpp
+++ b/xpcom/io/SpecialSystemDirectory.cpp
@@ -76,9 +76,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;
}