summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-01-10 13:30:27 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-01-10 13:40:03 (GMT)
commit6754b26bf0bb69ad6d65249bf4122dbbda446922 (patch)
tree4c7f302ae0b8ea45bc7b00f3015144ae146d4c91 /Source/kwsys/SystemTools.cxx
parenta300edab4132d73093deaf0987b6c4cf027dc2d5 (diff)
downloadCMake-6754b26bf0bb69ad6d65249bf4122dbbda446922.zip
CMake-6754b26bf0bb69ad6d65249bf4122dbbda446922.tar.gz
CMake-6754b26bf0bb69ad6d65249bf4122dbbda446922.tar.bz2
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.
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index ab90db3..eefa7f5 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/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;