From f95308afa8f22e308dbbaf15f92087f8c08d62d8 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 1 Jun 2004 11:12:59 +0000 Subject: [PATCH] For some strange reason IniFileSectionListHead is not initialized correctly. Intialize it maually in order to prevent access violations. svn path=/trunk/; revision=9584 --- freeldr/freeldr/inifile/parse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freeldr/freeldr/inifile/parse.c b/freeldr/freeldr/inifile/parse.c index 329b197893e..b229d82277c 100644 --- a/freeldr/freeldr/inifile/parse.c +++ b/freeldr/freeldr/inifile/parse.c @@ -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);