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 — Added explicit casts. · code4bones/MemoryModule@bb736dc

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
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ HMEMORYMODULE MemoryLoadLibraryEx(const void *data,
420420
result->headers->OptionalHeader.ImageBase = (POINTER_TYPE)code;
421421

422422
// copy sections from DLL file block to new memory location
423-
CopySections(data, old_header, result);
423+
CopySections((const unsigned char *) data, old_header, result);
424424

425425
// adjust base address of imported data
426426
locationDelta = (SIZE_T)(code - old_header->OptionalHeader.ImageBase);
@@ -728,7 +728,7 @@ MemoryLoadStringEx(HMEMORYMODULE module, UINT id, LPTSTR buffer, int maxsize, WO
728728
return 0;
729729
}
730730

731-
data = MemoryLoadResource(module, resource);
731+
data = (PIMAGE_RESOURCE_DIR_STRING_U) MemoryLoadResource(module, resource);
732732
id = id & 0x0f;
733733
while (id--) {
734734
data = (PIMAGE_RESOURCE_DIR_STRING_U) (((char *) data) + (data->Length + 1) * sizeof(WCHAR));

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.