changed wrong line in previous commit,
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 4 Feb 2007 14:50:47 +0000 (14:50 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 4 Feb 2007 14:50:47 +0000 (14:50 +0000)
thanks to jjkola

svn path=/trunk/; revision=25709

reactos/dll/cpl/sysdm/startrec.c

index 55ffacd..ddd2c29 100644 (file)
@@ -47,10 +47,10 @@ StartRecDlgProc(HWND hwndDlg,
                {
                        /* get Path to freeldr.ini or boot.ini */
                        szSystemDrive = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, MAX_PATH);
-                       if (szSystemDrive != NULL && szSystemDrive != NULL)
+                       if (szSystemDrive != NULL)
                        {
                                szSystemDrive = _tgetenv(_T("SystemDrive"));
-                               if (m_szFreeldrIni != NULL)
+                               if (m_szFreeldrIni != NULL && szSystemDrive != NULL)
                                {                                               
                                        _tcscpy(m_szFreeldrIni, szSystemDrive);
                                        _tcscat(m_szFreeldrIni, _T("\\freeldr.ini"));