Skip to content
Browse files

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

…bit()'
  • Loading branch information...
1 parent 1238bb3 commit e3fa47e1d617a4d6b3438a08cafaa6af5487bebb @Karlson2k Karlson2k committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/win32/WIN32Util.cpp
View
2 xbmc/win32/WIN32Util.cpp
@@ -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;
}

0 comments on commit e3fa47e

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