mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 08:10:18 +00:00
[SYSDM]
* Fix a memory leak. svn path=/trunk/; revision=53934
This commit is contained in:
parent
741495c584
commit
7e49366011
1 changed files with 3 additions and 0 deletions
|
@ -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