From 6697e8cd416572b7d86fa27d6258d202b5783fb4 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sun, 2 Oct 2011 19:27:07 +0000 Subject: [PATCH] [SYSDM] * Revert r53934, this is a false positive from cppcheck. Spotted by Pierre. svn path=/trunk/; revision=53936 --- reactos/dll/cpl/sysdm/startrec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/reactos/dll/cpl/sysdm/startrec.c b/reactos/dll/cpl/sysdm/startrec.c index dd848c3f934..69e87e9edd0 100644 --- a/reactos/dll/cpl/sysdm/startrec.c +++ b/reactos/dll/cpl/sysdm/startrec.c @@ -455,10 +455,7 @@ LoadOSList(HWND hwndDlg, PSTARTINFO pStartInfo) dwBufSize = GetSystemDrive(&szSystemDrive); if (dwBufSize == 0) - { - HeapFree(GetProcessHeap(), 0, szSystemDrive); return FALSE; - } wcscpy(pStartInfo->szFreeldrIni, szSystemDrive); wcscat(pStartInfo->szFreeldrIni, L"\\freeldr.ini");