summaryrefslogtreecommitdiffstats
path: root/xpcom/io
diff options
context:
space:
mode:
authorDavid Major <dmajor@mozilla.com>2020-11-18 22:21:22 +0000
committerMoonchild <moonchild@palemoon.org>2020-11-18 22:21:22 +0000
commitbd061ac043c66ee0de289f5af37a4895afc57bca (patch)
tree319a1ad7ab5476919e4e9ecfd36300f7822c56ea /xpcom/io
parent31a64578e2a407008e3efc7e6c98c13b3e4cf238 (diff)
downloadUXP-bd061ac043c66ee0de289f5af37a4895afc57bca.tar
UXP-bd061ac043c66ee0de289f5af37a4895afc57bca.tar.gz
UXP-bd061ac043c66ee0de289f5af37a4895afc57bca.tar.lz
UXP-bd061ac043c66ee0de289f5af37a4895afc57bca.tar.xz
UXP-bd061ac043c66ee0de289f5af37a4895afc57bca.zip
[xpcom] Fix GetWindowsFolder storage
Diffstat (limited to 'xpcom/io')
-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 40be10246..4efd8b7af 100644
--- a/xpcom/io/SpecialSystemDirectory.cpp
+++ b/xpcom/io/SpecialSystemDirectory.cpp
@@ -75,9 +75,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;
}