For some strange reason IniFileSectionListHead is not initialized correctly.

Intialize it maually in order to prevent access violations.

svn path=/trunk/; revision=9584
This commit is contained in:
Eric Kohl 2004-06-01 11:12:59 +00:00
parent 361a0a9bb7
commit f95308afa8

View file

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