Просмотр исходного кода

KWSys: Fix WOW64 registry mode on Windows 2000 (#10759)

The previous commit did not compile with mingw gcc.
Use the Windows type FARPROC instead of void* for
the local variable.
David Cole 15 лет назад
Родитель
Сommit
6754b26bf0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Source/kwsys/SystemTools.cxx

+ 2 - 2
Source/kwsys/SystemTools.cxx

@@ -564,8 +564,8 @@ static DWORD SystemToolsMakeRegistryMode(DWORD mode,
                                          SystemTools::KeyWOW64 view)
 {
   // only add the modes when on a system that supports Wow64.
-  static void *wow64p = GetProcAddress(GetModuleHandle("kernel32"),
-                                       "IsWow64Process");
+  static FARPROC wow64p = GetProcAddress(GetModuleHandle("kernel32"),
+                                         "IsWow64Process");
   if(wow64p == NULL)
     {
     return mode;