mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 08:07:30 +09:00
[xpcom] Fix GetWindowsFolder storage
This commit is contained in:
parent
3cac4d852d
commit
07864a9251
1 changed files with 2 additions and 2 deletions
|
|
@ -102,9 +102,9 @@ GetWindowsFolder(int aFolder, nsIFile** aFile)
|
||||||
{
|
{
|
||||||
WCHAR path_orig[MAX_PATH + 3];
|
WCHAR path_orig[MAX_PATH + 3];
|
||||||
WCHAR* path = path_orig + 1;
|
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;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue