https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4a2ad113e59e8998dcf30…
commit 4a2ad113e59e8998dcf30ec490e76008bedb6a1e
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sun Jan 14 00:57:56 2018 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Mon Jan 15 19:47:58 2018 +0100
[KERNEL32] Add version info to VerifyVersionInfo mismatch print.
---
dll/win32/kernel32/client/version.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/dll/win32/kernel32/client/version.c b/dll/win32/kernel32/client/version.c
index 0ae917392b..b335210510 100644
--- a/dll/win32/kernel32/client/version.c
+++ b/dll/win32/kernel32/client/version.c
@@ -131,7 +131,18 @@ VerifyVersionInfoW(IN LPOSVERSIONINFOEXW lpVersionInformation,
return FALSE;
case STATUS_REVISION_MISMATCH:
- DPRINT1("VerifyVersionInfo -- Version mismatch\n");
+ if (lpVersionInformation)
+ {
+ DPRINT1("VerifyVersionInfo -- Version
mismatch(%d.%d.%d:%d)\n",
+ (dwTypeMask & VER_MAJORVERSION) ?
lpVersionInformation->dwMajorVersion : -1,
+ (dwTypeMask & VER_MINORVERSION) ?
lpVersionInformation->dwMinorVersion : -1,
+ (dwTypeMask & VER_BUILDNUMBER) ?
lpVersionInformation->dwBuildNumber : -1,
+ (dwTypeMask & VER_PLATFORMID) ?
lpVersionInformation->dwPlatformId : -1);
+ }
+ else
+ {
+ DPRINT1("VerifyVersionInfo -- Version mismatch(NULL)\n");
+ }
SetLastError(ERROR_OLD_WIN_VERSION);
return FALSE;