mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- Removed import of kernel32.GetVersionExW.
svn path=/trunk/; revision=5256
This commit is contained in:
parent
e88c8bf234
commit
e465a87f9c
2 changed files with 7 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $Id: makefile,v 1.90 2003/07/24 14:25:32 royce Exp $
|
# $Id: makefile,v 1.91 2003/07/24 19:53:11 hbirr Exp $
|
||||||
|
|
||||||
PATH_TO_TOP = ../..
|
PATH_TO_TOP = ../..
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
|
||||||
-Wl,--section-alignment,0x1000 \
|
-Wl,--section-alignment,0x1000 \
|
||||||
-nostartfiles -nostdlib
|
-nostartfiles -nostdlib
|
||||||
|
|
||||||
TARGET_SDKLIBS = string.a rosrtl.a kernel32.a
|
TARGET_SDKLIBS = string.a rosrtl.a
|
||||||
|
|
||||||
TARGET_GCCLIBS = gcc
|
TARGET_GCCLIBS = gcc
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: misc.c,v 1.7 2003/07/24 14:25:33 royce Exp $
|
/* $Id: misc.c,v 1.8 2003/07/24 19:53:11 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -101,9 +101,7 @@ RtlGetNtProductType(PNT_PRODUCT_TYPE ProductType)
|
||||||
void STDCALL
|
void STDCALL
|
||||||
RtlGetNtVersionNumbers(LPDWORD major, LPDWORD minor, LPDWORD build)
|
RtlGetNtVersionNumbers(LPDWORD major, LPDWORD minor, LPDWORD build)
|
||||||
{
|
{
|
||||||
OSVERSIONINFOEXW versionInfo;
|
PPEB pPeb = NtCurrentPeb();
|
||||||
versionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXW);
|
|
||||||
GetVersionExW((OSVERSIONINFOW*)&versionInfo);
|
|
||||||
|
|
||||||
if (major)
|
if (major)
|
||||||
{
|
{
|
||||||
|
@ -111,18 +109,18 @@ RtlGetNtVersionNumbers(LPDWORD major, LPDWORD minor, LPDWORD build)
|
||||||
* major version is not 5. So, we should never set a version < 5 ...
|
* major version is not 5. So, we should never set a version < 5 ...
|
||||||
* This makes sense since this call didn't exist before XP anyway.
|
* This makes sense since this call didn't exist before XP anyway.
|
||||||
*/
|
*/
|
||||||
*major = versionInfo.dwMajorVersion < 5 ? 5 : versionInfo.dwMajorVersion;
|
*major = pPeb->OSMajorVersion < 5 ? 5 : pPeb->OSMajorVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (minor)
|
if (minor)
|
||||||
{
|
{
|
||||||
*minor = versionInfo.dwMinorVersion;
|
*minor = pPeb->OSMinorVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (build)
|
if (build)
|
||||||
{
|
{
|
||||||
/* FIXME: Does anybody know the real formula? */
|
/* FIXME: Does anybody know the real formula? */
|
||||||
*build = (0xF0000000 | versionInfo.dwBuildNumber);
|
*build = (0xF0000000 | pPeb->OSBuildNumber);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue