summaryrefslogtreecommitdiffstats
path: root/PC/frozen_dllmain.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-01-14 16:54:09 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-01-14 16:54:09 (GMT)
commit50590f111b14090eacf536280287d2d1743c6a88 (patch)
treefc18378eba7c109ff4673e28944452620f4aaa3e /PC/frozen_dllmain.c
parentd61fdc17d38e4ef32505187b81c40c5afd59c3e3 (diff)
downloadcpython-50590f111b14090eacf536280287d2d1743c6a88.zip
cpython-50590f111b14090eacf536280287d2d1743c6a88.tar.gz
cpython-50590f111b14090eacf536280287d2d1743c6a88.tar.bz2
Use GetModuleHandleW to avoid *A functions where possible.
Diffstat (limited to 'PC/frozen_dllmain.c')
-rw-r--r--PC/frozen_dllmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/frozen_dllmain.c b/PC/frozen_dllmain.c
index e1e4eda..0156c50 100644
--- a/PC/frozen_dllmain.c
+++ b/PC/frozen_dllmain.c
@@ -118,7 +118,7 @@ BOOL CallModuleDllMain(char *modName, DWORD dwReason)
BOOL (WINAPI * pfndllmain)(HINSTANCE, DWORD, LPVOID);
char funcName[255];
- HMODULE hmod = GetModuleHandle(NULL);
+ HMODULE hmod = GetModuleHandleW(NULL);
strcpy(funcName, "_DllMain");
strcat(funcName, modName);
strcat(funcName, "@12"); // stdcall convention.