From a2479eca44edc2ab8db3146dbcd9ae84efa22fe2 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Tue, 5 Jul 2005 10:57:47 +0000 Subject: [PATCH] Fix gcc 4.0 warnings. --- dlls/kernel/version.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dlls/kernel/version.c b/dlls/kernel/version.c index 01479292f18..751c2108a22 100644 --- a/dlls/kernel/version.c +++ b/dlls/kernel/version.c @@ -155,9 +155,8 @@ BOOL WINAPI GetVersionExA(OSVERSIONINFOA *v) if (v->dwOSVersionInfoSize != sizeof(OSVERSIONINFOA) && v->dwOSVersionInfoSize != sizeof(OSVERSIONINFOEXA)) { - WARN("wrong OSVERSIONINFO size from app (got: %ld, expected: %d or %d)\n", - v->dwOSVersionInfoSize, sizeof(OSVERSIONINFOA), - sizeof(OSVERSIONINFOEXA)); + WARN("wrong OSVERSIONINFO size from app (got: %ld)\n", + v->dwOSVersionInfoSize ); return FALSE; } @@ -191,9 +190,8 @@ BOOL WINAPI GetVersionExW( OSVERSIONINFOW *info ) if (info->dwOSVersionInfoSize != sizeof(OSVERSIONINFOW) && info->dwOSVersionInfoSize != sizeof(OSVERSIONINFOEXW)) { - WARN("wrong OSVERSIONINFO size from app (got: %ld, expected: %d or %d)\n", - info->dwOSVersionInfoSize, sizeof(OSVERSIONINFOW), - sizeof(OSVERSIONINFOEXW)); + WARN("wrong OSVERSIONINFO size from app (got: %ld)\n", + info->dwOSVersionInfoSize); return FALSE; } return (RtlGetVersion( (RTL_OSVERSIONINFOEXW *)info ) == STATUS_SUCCESS);