diff options
author | Tom Yu <tlyu@mit.edu> | 2006-07-21 23:57:49 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2006-07-21 23:57:49 +0000 |
commit | f7502c55fa2018c798658c09b4f983876885bb67 (patch) | |
tree | 5f04aafde1d48aabece085b58915b86d540e369b | |
parent | 129c3c8f6e8cbce9d29c2a447b5e3cfe045d9592 (diff) | |
download | krb5-f7502c55fa2018c798658c09b4f983876885bb67.zip krb5-f7502c55fa2018c798658c09b4f983876885bb67.tar.gz krb5-f7502c55fa2018c798658c09b4f983876885bb67.tar.bz2 |
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
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-5@18365 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/krb5/ccache/cc_mslsa.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/krb5/ccache/cc_mslsa.c b/src/lib/krb5/ccache/cc_mslsa.c index 46fa507..4bb6d75 100644 --- a/src/lib/krb5/ccache/cc_mslsa.c +++ b/src/lib/krb5/ccache/cc_mslsa.c @@ -148,9 +148,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 |