mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[KERNEL32_APITEST] Careless
This commit is contained in:
parent
0cdee99e05
commit
eee53c734b
1 changed files with 6 additions and 5 deletions
|
@ -173,25 +173,26 @@ static void TestEntry(const ENTRY *pEntry)
|
|||
|
||||
typedef NTSTATUS (WINAPI* RTLGETVERSION)(PRTL_OSVERSIONINFOW);
|
||||
|
||||
static OSVERSIONINFOW *GetRealOSVersion(void)
|
||||
static RTL_OSVERSIONINFOW *GetRealOSVersion(void)
|
||||
{
|
||||
static OSVERSIONINFOW osvi = { 0 };
|
||||
static RTL_OSVERSIONINFOW osvi = { 0 };
|
||||
RTL_OSVERSIONINFOW *ptr = NULL;
|
||||
HINSTANCE hNTDLL = LoadLibraryW(L"ntdll.dll");
|
||||
RTLGETVERSION fn;
|
||||
if (hNTDLL)
|
||||
{
|
||||
RTLGETVERSION fn;
|
||||
fn = (RTLGETVERSION)GetProcAddress(hNTDLL, "RtlGetVersion");
|
||||
if (fn)
|
||||
{
|
||||
osvi.dwOSVersionInfoSize = sizeof(osvi);
|
||||
if (fn(&osvi) == STATUS_SUCCESS)
|
||||
{
|
||||
return &osvi;
|
||||
ptr = &osvi;
|
||||
}
|
||||
}
|
||||
FreeLibrary(hNTDLL);
|
||||
}
|
||||
return NULL;
|
||||
return ptr;
|
||||
}
|
||||
|
||||
static BOOL IsWin10Plus(void)
|
||||
|
|
Loading…
Reference in a new issue