From 07864a92514737a5b04d8ff07d6646f57730d47e Mon Sep 17 00:00:00 2001 From: David Major Date: Wed, 18 Nov 2020 22:21:22 +0000 Subject: [PATCH] [xpcom] Fix GetWindowsFolder storage --- xpcom/io/SpecialSystemDirectory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpcom/io/SpecialSystemDirectory.cpp b/xpcom/io/SpecialSystemDirectory.cpp index ccded584a0..67e7f0059d 100644 --- a/xpcom/io/SpecialSystemDirectory.cpp +++ b/xpcom/io/SpecialSystemDirectory.cpp @@ -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; }