Initialize the list of hooks before the call to NtAllocateVirtualMemory, to prevent crashes
in MemCleanup in case it fails.
svn path=/trunk/; revision=67186
NTSTATUS Status;
SIZE_T MemorySize = MAX_ADDRESS; // See: kernel32/client/vdm.c!BaseGetVdmConfigInfo
+ InitializeListHead(&HookList);
+
#ifndef STANDALONE
/*
ASSERT(BaseAddress == NULL);
#endif
- InitializeListHead(&HookList);
-
/*
* For diagnostics purposes, we fill the memory with INT 0x03 codes
* so that if a program wants to execute random code in memory, we can