Skip to content
This repository
Browse code

[win32] fix: use new function 'GetKernelBitness()' instead of 'IsOS64…

…bit()'
  • Loading branch information...
commit e3fa47e1d617a4d6b3438a08cafaa6af5487bebb 1 parent 1238bb3
Karlson2k authored October 01, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xbmc/win32/WIN32Util.cpp
2  xbmc/win32/WIN32Util.cpp
@@ -1381,7 +1381,7 @@ LONG CWIN32Util::UtilRegGetValue( const HKEY hKey, const char *const pcKey, DWOR
1381 1381
 
1382 1382
 bool CWIN32Util::UtilRegOpenKeyEx( const HKEY hKeyParent, const char *const pcKey, const REGSAM rsAccessRights, HKEY *hKey, const bool bReadX64 )
1383 1383
 {
1384  
-  const REGSAM rsAccessRightsTmp= ( CSysInfo::IsOS64bit() ? rsAccessRights | ( bReadX64 ? KEY_WOW64_64KEY : KEY_WOW64_32KEY ) : rsAccessRights );
  1384
+  const REGSAM rsAccessRightsTmp= ( CSysInfo::GetKernelBitness() == 64 ? rsAccessRights | ( bReadX64 ? KEY_WOW64_64KEY : KEY_WOW64_32KEY ) : rsAccessRights );
1385 1385
   bool bRet= ( ERROR_SUCCESS == RegOpenKeyEx(hKeyParent, pcKey, 0, rsAccessRightsTmp, hKey));
1386 1386
   return bRet;
1387 1387
 }

0 notes on commit e3fa47e

Please sign in to comment.
Something went wrong with that request. Please try again.