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.
This commit is contained in:
parent
a300edab41
commit
6754b26bf0
|
@ -564,8 +564,8 @@ static DWORD SystemToolsMakeRegistryMode(DWORD mode,
|
||||||
SystemTools::KeyWOW64 view)
|
SystemTools::KeyWOW64 view)
|
||||||
{
|
{
|
||||||
// only add the modes when on a system that supports Wow64.
|
// only add the modes when on a system that supports Wow64.
|
||||||
static void *wow64p = GetProcAddress(GetModuleHandle("kernel32"),
|
static FARPROC wow64p = GetProcAddress(GetModuleHandle("kernel32"),
|
||||||
"IsWow64Process");
|
"IsWow64Process");
|
||||||
if(wow64p == NULL)
|
if(wow64p == NULL)
|
||||||
{
|
{
|
||||||
return mode;
|
return mode;
|
||||||
|
|
Loading…
Reference in New Issue