summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx')
-rw-r--r--setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
index b1ffb6976c87..1a2e82eb7c54 100644
--- a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
+++ b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
@@ -89,9 +89,9 @@ static void OutputDebugStringFormatW( LPCWSTR, ... )
}
#endif
-static BOOL CheckExtensionInRegistry( LPCWSTR lpSubKey )
+static bool CheckExtensionInRegistry( LPCWSTR lpSubKey )
{
- BOOL bRet = false;
+ bool bRet = false;
HKEY hKey = nullptr;
LONG lResult = RegOpenKeyExW( HKEY_CLASSES_ROOT, lpSubKey, 0, KEY_QUERY_VALUE, &hKey );
@@ -216,14 +216,14 @@ static void saveOldRegistration( LPCWSTR lpSubKey )
}
}
-static void registerForExtensions( MSIHANDLE handle, BOOL bRegisterAll )
+static void registerForExtensions( MSIHANDLE handle, bool bRegisterAll )
{ // Check all file extensions
int nIndex = 0;
while ( g_Extensions[nIndex] != nullptr )
{
saveOldRegistration( g_Extensions[nIndex] );
- BOOL bRegister = bRegisterAll || CheckExtensionInRegistry( g_Extensions[nIndex] );
+ bool bRegister = bRegisterAll || CheckExtensionInRegistry( g_Extensions[nIndex] );
if ( bRegister )
registerForExtension( handle, nIndex, true );
++nIndex;