wined3d: Fix driver version check.

The previous check didn't catch older Windows versions for which
dwMinorVersion > 2.

Spotted by Michael Müller.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2016-03-22 13:41:46 +01:00 committed by Alexandre Julliard
parent e8ceab5344
commit 97c70c86be
1 changed files with 1 additions and 2 deletions

View File

@ -1533,8 +1533,7 @@ static void init_driver_info(struct wined3d_driver_info *driver_info,
* In order to avoid this application bug we limit the amount of video memory
* to LONG_MAX for older Windows versions.
*/
if (os_version.dwMajorVersion <= 5 && os_version.dwMinorVersion <= 2
&& driver_info->vram_bytes > LONG_MAX)
if (driver_model < DRIVER_MODEL_NT6X && driver_info->vram_bytes > LONG_MAX)
{
TRACE("Limiting amount of video memory to %#lx bytes for OS version older than Vista.\n", LONG_MAX);
driver_info->vram_bytes = LONG_MAX;