We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc173ca + 89e02fc commit 0ce2454Copy full SHA for 0ce2454
1 file changed
MemoryModule.c
@@ -496,17 +496,14 @@ HMEMORYMODULE MemoryLoadLibraryEx(const void *data,
496
}
497
498
499
- result = (PMEMORYMODULE)HeapAlloc(GetProcessHeap(), 0, sizeof(MEMORYMODULE));
+ result = (PMEMORYMODULE)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(MEMORYMODULE));
500
if (result == NULL) {
501
SetLastError(ERROR_OUTOFMEMORY);
502
VirtualFree(code, 0, MEM_RELEASE);
503
return NULL;
504
505
506
result->codeBase = code;
507
- result->numModules = 0;
508
- result->modules = NULL;
509
- result->initialized = FALSE;
510
result->isDLL = (old_header->FileHeader.Characteristics & IMAGE_FILE_DLL) != 0;
511
result->loadLibrary = loadLibrary;
512
result->getProcAddress = getProcAddress;
0 commit comments