Suppress MSVC warning C4191.

This commit is contained in:
Roman Telezhynskyi 2023-08-14 16:42:35 +03:00
parent ceb125f5d7
commit 78483c6fcf

View File

@ -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<RtlGetVersionFunc>(GetProcAddress(hNTdllDll, "RtlGetVersion"));
QT_WARNING_POP
// If successful then read the function
if (pRtlGetVersion != nullptr)
{