We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 808c043 commit 6212358Copy full SHA for 6212358
MemoryModule.c
@@ -596,11 +596,7 @@ static PIMAGE_RESOURCE_DIRECTORY_ENTRY _MemorySearchResourceEntry(
596
if (!IS_INTRESOURCE(key) && key[0] == TEXT('#')) {
597
// special case: resource id given as string
598
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
+ long int tmpkey = (WORD) _tcstol((TCHAR *) &key[1], &endpos, 10);
604
if (tmpkey <= 0xffff && lstrlen(endpos) == 0) {
605
key = MAKEINTRESOURCE(tmpkey);
606
}
0 commit comments