Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…bit()'
  • Loading branch information...
commit e3fa47e1d617a4d6b3438a08cafaa6af5487bebb 1 parent 1238bb3
Karlson2k Karlson2k authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xbmc/win32/WIN32Util.cpp
2  xbmc/win32/WIN32Util.cpp
View
@@ -1381,7 +1381,7 @@ LONG CWIN32Util::UtilRegGetValue( const HKEY hKey, const char *const pcKey, DWOR
bool CWIN32Util::UtilRegOpenKeyEx( const HKEY hKeyParent, const char *const pcKey, const REGSAM rsAccessRights, HKEY *hKey, const bool bReadX64 )
{
- const REGSAM rsAccessRightsTmp= ( CSysInfo::IsOS64bit() ? rsAccessRights | ( bReadX64 ? KEY_WOW64_64KEY : KEY_WOW64_32KEY ) : rsAccessRights );
+ const REGSAM rsAccessRightsTmp= ( CSysInfo::GetKernelBitness() == 64 ? rsAccessRights | ( bReadX64 ? KEY_WOW64_64KEY : KEY_WOW64_32KEY ) : rsAccessRights );
bool bRet= ( ERROR_SUCCESS == RegOpenKeyEx(hKeyParent, pcKey, 0, rsAccessRightsTmp, hKey));
return bRet;
}
Please sign in to comment.
Something went wrong with that request. Please try again.