wined3d: Explicitly handle Windows 2 & 3 in wined3d_driver_info_init().

By returning Windows 9x driver versions.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2019-06-27 16:02:10 +04:30 committed by Alexandre Julliard
parent 62179b511f
commit 6d417f7890
1 changed files with 2 additions and 0 deletions

View File

@ -565,6 +565,8 @@ void wined3d_driver_info_init(struct wined3d_driver_info *driver_info,
TRACE("OS version %u.%u.\n", os_version.dwMajorVersion, os_version.dwMinorVersion);
switch (os_version.dwMajorVersion)
{
case 2:
case 3:
case 4:
/* If needed we could distinguish between 9x and NT4, but this code won't make
* sense for NT4 since it had no way to obtain this info through DirectDraw 3.0.