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... ============================================================================== --- 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)