mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Fix freeing the allocated string SID
svn path=/trunk/; revision=39304
This commit is contained in:
parent
b7dc6dc3d9
commit
3f5fd0f760
1 changed files with 1 additions and 1 deletions
|
@ -1197,7 +1197,7 @@ static HRESULT _SHGetUserProfilePath(HANDLE hToken, DWORD dwFlags, BYTE folder,
|
|||
hr = _SHGetUserShellFolderPath(hRootKey, userPrefix, CSIDL_Data[folder].szValueName, pszPath);
|
||||
|
||||
/* Free the memory allocated by ConvertSidToStringSidW */
|
||||
if(!hToken && hToken != (HANDLE)-1)
|
||||
if(hToken && hToken != (HANDLE)-1)
|
||||
LocalFree(userPrefix);
|
||||
|
||||
if (FAILED(hr) && hRootKey != HKEY_LOCAL_MACHINE)
|
||||
|
|
Loading…
Reference in a new issue