Author: spetreolle
Date: Sat Feb 3 16:50:47 2007
New Revision: 25700
URL:
http://svn.reactos.org/svn/reactos?rev=25700&view=rev
Log:
avoid crash
Modified:
trunk/reactos/dll/cpl/sysdm/startrec.c
Modified: trunk/reactos/dll/cpl/sysdm/startrec.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/startrec.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/startrec.c (original)
+++ trunk/reactos/dll/cpl/sysdm/startrec.c Sat Feb 3 16:50:47 2007
@@ -47,7 +47,7 @@
{
/* 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)