From d7b522cba2a797affb2eee9282e134885e7576eb Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Mon, 13 Dec 2004 23:11:13 +0000 Subject: [PATCH] - Modify RtlGetNtVersionNumbers to allow loading of WinXP SP2 MSVCRT.DLL. svn path=/trunk/; revision=12101 --- reactos/lib/ntdll/rtl/misc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/lib/ntdll/rtl/misc.c b/reactos/lib/ntdll/rtl/misc.c index 5dfcb3b5169..6703acaf352 100644 --- a/reactos/lib/ntdll/rtl/misc.c +++ b/reactos/lib/ntdll/rtl/misc.c @@ -1,4 +1,4 @@ -/* $Id: misc.c,v 1.10 2004/08/05 18:17:36 ion Exp $ +/* $Id: misc.c,v 1.11 2004/12/13 23:11:13 navaraf Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -84,7 +84,10 @@ RtlGetNtVersionNumbers(LPDWORD major, LPDWORD minor, LPDWORD build) if (minor) { - *minor = pPeb->OSMinorVersion; + if (pPeb->OSMinorVersion <= 5) + *minor = pPeb->OSMinorVersion < 1 ? 1 : pPeb->OSMinorVersion; + else + *minor = pPeb->OSMinorVersion; } if (build)