Suppress MSVC warning C4191.
This commit is contained in:
parent
ceb125f5d7
commit
78483c6fcf
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user