mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
[SYSDM]
* Fix a memory leak. svn path=/trunk/; revision=53934
This commit is contained in:
parent
741495c584
commit
7e49366011
|
@ -455,7 +455,10 @@ 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");
|
||||
|
|
Loading…
Reference in a new issue