]> git.saurik.com Git - wxWidgets.git/commitdiff
Crash fix from Tim Kosse.
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Thu, 17 Aug 2006 22:57:14 +0000 (22:57 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Thu, 17 Aug 2006 22:57:14 +0000 (22:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/utils.cpp

index 9ff3e343b772a2617a5ba116d8dc695820851e21..cc998c4242a499762d95eac60731e201edf9e9cc 100644 (file)
@@ -1171,13 +1171,13 @@ bool wxIsPlatform64Bit()
     typedef BOOL (WINAPI *IsWow64Process_t)(HANDLE, BOOL *);
 
     wxDynamicLibrary dllKernel32(_T("kernel32.dll"));
-    IsWow64Process_t *pfnIsWow64Process =
-        (IsWow64Process_t *)dllKernel32.RawGetSymbol(_T("IsWow64Process"));
+    IsWow64Process_t pfnIsWow64Process =
+        (IsWow64Process_t)dllKernel32.RawGetSymbol(_T("IsWow64Process"));
 
     BOOL wow64 = FALSE;
     if ( pfnIsWow64Process )
     {
-        (*pfnIsWow64Process)(::GetCurrentProcess(), &wow64);
+        pfnIsWow64Process(::GetCurrentProcess(), &wow64);
     }
     //else: running under a system without Win64 support