diff --git a/src/libs/vmisc/theme/vtheme.cpp b/src/libs/vmisc/theme/vtheme.cpp index 0f940e8b8..acc1b0c5f 100644 --- a/src/libs/vmisc/theme/vtheme.cpp +++ b/src/libs/vmisc/theme/vtheme.cpp @@ -91,9 +91,14 @@ bool GetTrueWindowsVersion(RTL_OSVERSIONINFOW &osVersionInfo) // Successfully loaded? if (hNTdllDll != nullptr) { + QT_WARNING_PUSH + QT_WARNING_DISABLE_MSVC(4191) + // Get the function pointer to RtlGetVersion pRtlGetVersion = reinterpret_cast(GetProcAddress(hNTdllDll, "RtlGetVersion")); + QT_WARNING_POP + // If successful then read the function if (pRtlGetVersion != nullptr) {