For some strange reason IniFileSectionListHead is not initialized correctly.
authorEric Kohl <eric.kohl@reactos.org>
Tue, 1 Jun 2004 11:12:59 +0000 (11:12 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 1 Jun 2004 11:12:59 +0000 (11:12 +0000)
Intialize it maually in order to prevent access violations.

svn path=/trunk/; revision=9584

freeldr/freeldr/inifile/parse.c

index 329b197..b229d82 100644 (file)
@@ -41,6 +41,10 @@ BOOL IniParseFile(PUCHAR IniFileData, U32 IniFileSize)
 
        DbgPrint((DPRINT_INIFILE, "IniParseFile() IniFileSize: %d\n", IniFileSize));
 
+       IniFileSectionListHead = NULL;
+       IniFileSectionCount = 0;
+       IniFileSettingCount = 0;
+
        // Start with an 80-byte buffer
        IniFileLineSize = 80;
        IniFileLine = MmAllocateMemory(IniFileLineSize);