[ros-diffs] [cfinck] 39304: Fix freeing the allocated string SID
cfinck at svn.reactos.org
cfinck at svn.reactos.org
Tue Feb 3 10:39:57 CET 2009
Author: cfinck
Date: Tue Feb 3 03:39:57 2009
New Revision: 39304
URL: http://svn.reactos.org/svn/reactos?rev=39304&view=rev
Log:
Fix freeing the allocated string SID
Modified:
trunk/reactos/dll/win32/shell32/shellpath.c
Modified: trunk/reactos/dll/win32/shell32/shellpath.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shellpath.c?rev=39304&r1=39303&r2=39304&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/shellpath.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shellpath.c [iso-8859-1] Tue Feb 3 03:39:57 2009
@@ -1197,7 +1197,7 @@
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)
More information about the Ros-diffs
mailing list