diff mm7_2.cpp @ 25:a32303569c42

18.01.13 (64 bit)
author Ritor1
date Fri, 18 Jan 2013 20:15:30 +0600
parents 8e33efd39355
children 34192c501dfe
line wrap: on
line diff
--- a/mm7_2.cpp	Fri Jan 18 00:00:20 2013 +0600
+++ b/mm7_2.cpp	Fri Jan 18 20:15:30 2013 +0600
@@ -13027,7 +13027,7 @@
   hKey = 0;
   phkResult = 0;
   cbData = 4;
-  if ( !RegOpenKeyExA(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, 0x2001Fu, &hKey) )
+  if ( !RegOpenKeyExA(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_READ|KEY_WOW64_32KEY, &hKey) )
   {
     if ( !RegCreateKeyExA(hKey, "New World Computing", 0, "", 0, 0xF003Fu, 0, &phkResult, &dwDisposition) )
     {