From 6ed6c10c12183513dd435482ddf1149fa4e7ddda Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 21 Jul 2006 23:39:41 +0000 Subject: [PATCH] pull up r18320 from trunk r18320@cathode-dark-space: jaltman | 2006-07-03 01:23:16 -0400 ticket: new subject: GetModuleHandle needs extension on Win64 cc_mslsa.c: some versions of Win64 require the extension to be specified as part of the parameter to GetModuleHandle() in order to find a match. ticket: 3977 version_fixed: 1.4.4 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@18364 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/cc_mslsa.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/ccache/cc_mslsa.c b/src/lib/krb5/ccache/cc_mslsa.c index d9ebbec19..f570e5ae9 100644 --- a/src/lib/krb5/ccache/cc_mslsa.c +++ b/src/lib/krb5/ccache/cc_mslsa.c @@ -139,9 +139,12 @@ is_broken_wow64(void) { BOOL isWow64 = FALSE; OSVERSIONINFO Version; - LPFN_ISWOW64PROCESS fnIsWow64Process = - (LPFN_ISWOW64PROCESS)GetProcAddress(GetModuleHandle("kernel32"), - "IsWow64Process"); + HANDLE h1 = NULL; + LPFN_ISWOW64PROCESS fnIsWow64Process = NULL; + + h1 = GetModuleHandle(L"kernel32.dll"); + fnIsWow64Process = + (LPFN_ISWOW64PROCESS)GetProcAddress(h1, "IsWow64Process"); /* If we don't find the fnIsWow64Process function then we * are not running in a broken Wow64 -- 2.26.2