hw/xwin: Remove some redundant OS version reporting

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
Jon TURNEY 2012-01-25 13:33:39 +00:00
parent a9aca218f5
commit 25caa8565d
3 changed files with 2 additions and 18 deletions

View File

@ -44,7 +44,7 @@ winClipboardDetectUnicodeSupport (void)
{
Bool fReturn = FALSE;
OSVERSIONINFO osvi = {0};
/* Get operating system version information */
osvi.dwOSVersionInfoSize = sizeof (osvi);
GetVersionEx (&osvi);
@ -54,13 +54,11 @@ winClipboardDetectUnicodeSupport (void)
{
case VER_PLATFORM_WIN32_NT:
/* Unicode supported on NT only */
ErrorF ("DetectUnicodeSupport - Windows NT/2000/XP\n");
fReturn = TRUE;
break;
case VER_PLATFORM_WIN32_WINDOWS:
/* Unicode is not supported on non-NT */
ErrorF ("DetectUnicodeSupport - Windows 95/98/Me\n");
fReturn = FALSE;
break;
}

View File

@ -68,20 +68,6 @@ winDetectSupportedEngines (void)
osvi.dwOSVersionInfoSize = sizeof (osvi);
GetVersionEx (&osvi);
/* Branch on platform ID */
switch (osvi.dwPlatformId)
{
case VER_PLATFORM_WIN32_NT:
/* Engine 4 is supported on NT only */
winErrorFVerb (2, "winDetectSupportedEngines - Windows NT/2000/XP\n");
break;
case VER_PLATFORM_WIN32_WINDOWS:
/* Engine 4 is supported on NT only */
winErrorFVerb (2, "winDetectSupportedEngines - Windows 95/98/Me\n");
break;
}
/* Do we have DirectDraw? */
if (g_hmodDirectDraw != NULL)
{

View File

@ -1209,7 +1209,7 @@ winLogCommandLine (int argc, char *argv[])
/*
* winLogVersionInfo - Log Cygwin/X version information
* winLogVersionInfo - Log version information
*/
void