Author: akhaldi Date: Sun Oct 2 19:27:07 2011 New Revision: 53936
URL: http://svn.reactos.org/svn/reactos?rev=53936&view=rev Log: [SYSDM] * Revert r53934, this is a false positive from cppcheck. Spotted by Pierre.
Modified: trunk/reactos/dll/cpl/sysdm/startrec.c
Modified: trunk/reactos/dll/cpl/sysdm/startrec.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/startrec.c?re... ============================================================================== --- trunk/reactos/dll/cpl/sysdm/startrec.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/sysdm/startrec.c [iso-8859-1] Sun Oct 2 19:27:07 2011 @@ -455,10 +455,7 @@
dwBufSize = GetSystemDrive(&szSystemDrive); if (dwBufSize == 0) - { - HeapFree(GetProcessHeap(), 0, szSystemDrive); - return FALSE; - } + return FALSE;
wcscpy(pStartInfo->szFreeldrIni, szSystemDrive); wcscat(pStartInfo->szFreeldrIni, L"\freeldr.ini");