Fix gcc 4.0 warnings.
This commit is contained in:
parent
c81d46d77f
commit
a2479eca44
|
@ -155,9 +155,8 @@ BOOL WINAPI GetVersionExA(OSVERSIONINFOA *v)
|
||||||
if (v->dwOSVersionInfoSize != sizeof(OSVERSIONINFOA) &&
|
if (v->dwOSVersionInfoSize != sizeof(OSVERSIONINFOA) &&
|
||||||
v->dwOSVersionInfoSize != sizeof(OSVERSIONINFOEXA))
|
v->dwOSVersionInfoSize != sizeof(OSVERSIONINFOEXA))
|
||||||
{
|
{
|
||||||
WARN("wrong OSVERSIONINFO size from app (got: %ld, expected: %d or %d)\n",
|
WARN("wrong OSVERSIONINFO size from app (got: %ld)\n",
|
||||||
v->dwOSVersionInfoSize, sizeof(OSVERSIONINFOA),
|
v->dwOSVersionInfoSize );
|
||||||
sizeof(OSVERSIONINFOEXA));
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,9 +190,8 @@ BOOL WINAPI GetVersionExW( OSVERSIONINFOW *info )
|
||||||
if (info->dwOSVersionInfoSize != sizeof(OSVERSIONINFOW) &&
|
if (info->dwOSVersionInfoSize != sizeof(OSVERSIONINFOW) &&
|
||||||
info->dwOSVersionInfoSize != sizeof(OSVERSIONINFOEXW))
|
info->dwOSVersionInfoSize != sizeof(OSVERSIONINFOEXW))
|
||||||
{
|
{
|
||||||
WARN("wrong OSVERSIONINFO size from app (got: %ld, expected: %d or %d)\n",
|
WARN("wrong OSVERSIONINFO size from app (got: %ld)\n",
|
||||||
info->dwOSVersionInfoSize, sizeof(OSVERSIONINFOW),
|
info->dwOSVersionInfoSize);
|
||||||
sizeof(OSVERSIONINFOEXW));
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
return (RtlGetVersion( (RTL_OSVERSIONINFOEXW *)info ) == STATUS_SUCCESS);
|
return (RtlGetVersion( (RTL_OSVERSIONINFOEXW *)info ) == STATUS_SUCCESS);
|
||||||
|
|
Loading…
Reference in New Issue