mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 06:42:52 +00:00
avoid crash
svn path=/trunk/; revision=25700
This commit is contained in:
parent
bb10cf55cf
commit
c0e8ed0771
|
@ -47,7 +47,7 @@ StartRecDlgProc(HWND hwndDlg,
|
||||||
{
|
{
|
||||||
/* get Path to freeldr.ini or boot.ini */
|
/* get Path to freeldr.ini or boot.ini */
|
||||||
szSystemDrive = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, MAX_PATH);
|
szSystemDrive = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, MAX_PATH);
|
||||||
if (szSystemDrive != NULL)
|
if (szSystemDrive != NULL && szSystemDrive != NULL)
|
||||||
{
|
{
|
||||||
szSystemDrive = _tgetenv(_T("SystemDrive"));
|
szSystemDrive = _tgetenv(_T("SystemDrive"));
|
||||||
if (m_szFreeldrIni != NULL)
|
if (m_szFreeldrIni != NULL)
|
||||||
|
|
Loading…
Reference in a new issue