From c0e8ed07713262e08c9c4bd5b06ebc94af1181cf Mon Sep 17 00:00:00 2001 From: Sylvain Petreolle Date: Sat, 3 Feb 2007 13:50:47 +0000 Subject: [PATCH] avoid crash svn path=/trunk/; revision=25700 --- reactos/dll/cpl/sysdm/startrec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/cpl/sysdm/startrec.c b/reactos/dll/cpl/sysdm/startrec.c index e1b31511abc..55ffacda38f 100644 --- a/reactos/dll/cpl/sysdm/startrec.c +++ b/reactos/dll/cpl/sysdm/startrec.c @@ -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)