projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7dc6dc
)
Fix freeing the allocated string SID
author
Colin Finck
<colin@reactos.org>
Tue, 3 Feb 2009 09:39:57 +0000
(09:39 +0000)
committer
Colin Finck
<colin@reactos.org>
Tue, 3 Feb 2009 09:39:57 +0000
(09:39 +0000)
svn path=/trunk/; revision=39304
reactos/dll/win32/shell32/shellpath.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/shell32/shellpath.c
b/reactos/dll/win32/shell32/shellpath.c
index
59b0c03
..
f196ce6
100644
(file)
--- a/
reactos/dll/win32/shell32/shellpath.c
+++ b/
reactos/dll/win32/shell32/shellpath.c
@@
-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)