summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}