File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -496,17 +496,14 @@ HMEMORYMODULE MemoryLoadLibraryEx(const void *data,
496496 }
497497 }
498498
499- result = (PMEMORYMODULE )HeapAlloc (GetProcessHeap (), 0 , sizeof (MEMORYMODULE ));
499+ result = (PMEMORYMODULE )HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY , sizeof (MEMORYMODULE ));
500500 if (result == NULL ) {
501501 SetLastError (ERROR_OUTOFMEMORY );
502502 VirtualFree (code , 0 , MEM_RELEASE );
503503 return NULL ;
504504 }
505505
506506 result -> codeBase = code ;
507- result -> numModules = 0 ;
508- result -> modules = NULL ;
509- result -> initialized = FALSE;
510507 result -> isDLL = (old_header -> FileHeader .Characteristics & IMAGE_FILE_DLL ) != 0 ;
511508 result -> loadLibrary = loadLibrary ;
512509 result -> getProcAddress = getProcAddress ;
You can’t perform that action at this time.
0 commit comments