From 4ee531fa100dc2dc3829dd625d78c528566df7fa Mon Sep 17 00:00:00 2001 From: Fedor Date: Thu, 26 Nov 2020 05:42:05 +0200 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 44256ffd3..e7ac26905 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; }