[*] Reintroduce regressed branch; missing indirect branch validation before call

This commit is contained in:
Reece Wilson 2023-07-09 11:02:35 +01:00
parent 627bdddfdc
commit 8c5a706dc6

View File

@ -96,7 +96,8 @@ namespace Aurora::SWInfo
RTL_OSVERSIONINFOEXW ovi {};
ovi.dwOSVersionInfoSize = sizeof(ovi);
if (pRtlGetVersion(reinterpret_cast<PRTL_OSVERSIONINFOW>(&ovi)) == 0)
if (pRtlGetVersion &&
pRtlGetVersion(reinterpret_cast<PRTL_OSVERSIONINFOW>(&ovi)) == 0)
{
osInfo.uKernelPatch = ovi.dwBuildNumber;
osInfo.uKernelMinor = ovi.dwMinorVersion;