GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Zero the memory allocated in the heap · HotKeyIt/MemoryModule@89e02fc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • MemoryModule.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎MemoryModule.c‎

Copy file name to clipboardExpand all lines: MemoryModule.c
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.