diff --git a/src/activeqt/control/qaxserver.cpp b/src/activeqt/control/qaxserver.cpp
index 7718fbf5f4f00558979e1dde9f27a5edb5b5223c..43f25ee83aefc3d19f1d80d64a99c1304e425d91 100644
--- a/src/activeqt/control/qaxserver.cpp
+++ b/src/activeqt/control/qaxserver.cpp
@@ -223,7 +223,7 @@ QString qax_clean_type(const QString &type, const QMetaObject *mo)
 
 // (Un)Register the ActiveX server in the registry.
 // The QAxFactory implementation provides the information.
-HRESULT UpdateRegistry(BOOL bRegister)
+HRESULT UpdateRegistry(bool bRegister)
 {
     qAxIsServer = false;
     const QChar dot(QLatin1Char('.'));
diff --git a/src/activeqt/control/qaxserverdll.cpp b/src/activeqt/control/qaxserverdll.cpp
index 20b030c1905f7b64dd0b93f6bd5a25e2a4ee327d..e9d3edeb89211c9769549e447a1870b357644246 100644
--- a/src/activeqt/control/qaxserverdll.cpp
+++ b/src/activeqt/control/qaxserverdll.cpp
@@ -72,7 +72,7 @@ extern void qAxCleanup();
 extern HANDLE qAxInstance;
 static uint qAxThreadId = 0;
 
-extern HRESULT UpdateRegistry(int bRegister);
+extern HRESULT UpdateRegistry(bool bRegister);
 extern HRESULT GetClassObject(const GUID &clsid, const GUID &iid, void **ppUnk);
 
 STDAPI DllRegisterServer()
diff --git a/src/activeqt/control/qaxservermain.cpp b/src/activeqt/control/qaxservermain.cpp
index c9472d4a22945d74ff35ff4505dbc46b0d69890f..f431f2a2d6a557ceafa85ff1ba5ba54020f15358 100644
--- a/src/activeqt/control/qaxservermain.cpp
+++ b/src/activeqt/control/qaxservermain.cpp
@@ -78,7 +78,7 @@ extern bool qAxOutProcServer;
 extern wchar_t qAxModuleFilename[MAX_PATH];
 extern QString qAxInit();
 extern void qAxCleanup();
-extern HRESULT UpdateRegistry(BOOL bRegister);
+extern HRESULT UpdateRegistry(bool bRegister);
 extern HRESULT GetClassObject(const GUID &clsid, const GUID &iid, void **ppUnk);
 extern ulong qAxLockCount();
 extern bool qax_winEventFilter(void *message);