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 — Use function from tchar.h instead of #ifdef. · codercold/MemoryModule@6212358

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-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -596,11 +596,7 @@ static PIMAGE_RESOURCE_DIRECTORY_ENTRY _MemorySearchResourceEntry(
596596
if (!IS_INTRESOURCE(key) && key[0] == TEXT('#')) {
597597
// special case: resource id given as string
598598
TCHAR *endpos = NULL;
599-
#if defined(UNICODE)
600-
long int tmpkey = (WORD) wcstol((TCHAR *) &key[1], &endpos, 10);
601-
#else
602-
long int tmpkey = (WORD) strtol((TCHAR *) &key[1], &endpos, 10);
603-
#endif
599+
long int tmpkey = (WORD) _tcstol((TCHAR *) &key[1], &endpos, 10);
604600
if (tmpkey <= 0xffff && lstrlen(endpos) == 0) {
605601
key = MAKEINTRESOURCE(tmpkey);
606602
}

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.