Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7050
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25571
dc483132-0cff-0310-8789-
dd5450dbe970
if (!name)
return ENOMEM;
+#ifdef _WIN64
+ if (!GetModuleFileName(GetModuleHandle("krb5_64"), name, size))
+#else
if (!GetModuleFileName(GetModuleHandle("krb5_32"), name, size))
+#endif
goto cleanup;
p = name + strlen(name);
if (!hModWSHelp)
{
// Note: these must match the DEF file entries
-#if defined (_WIN32)
- hModWSHelp = GetModuleHandle("WSHELP32");
+#if defined(_WIN64)
+ hModWSHelp = GetModuleHandle( "WSHELP64" );
#else
- hModWSHelp = GetModuleHandle("WSHELPER");
+ hModWSHelp = GetModuleHandle( "WSHELP32" );
#endif
}
return hModWSHelp;