avoid crash

svn path=/trunk/; revision=25700
This commit is contained in:
Sylvain Petreolle 2007-02-03 13:50:47 +00:00
parent bb10cf55cf
commit c0e8ed0771

View file

@ -47,7 +47,7 @@ StartRecDlgProc(HWND hwndDlg,
{
/* get Path to freeldr.ini or boot.ini */
szSystemDrive = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, MAX_PATH);
if (szSystemDrive != NULL)
if (szSystemDrive != NULL && szSystemDrive != NULL)
{
szSystemDrive = _tgetenv(_T("SystemDrive"));
if (m_szFreeldrIni != NULL)