ddraw: Clamp video memory to UINT_MAX in ddraw7_GetAvailableVidMem().

This commit is contained in:
Henri Verbeet 2014-08-18 08:26:17 +02:00 committed by Alexandre Julliard
parent d1d48d3194
commit 1fb7ccdc13
2 changed files with 2 additions and 1 deletions

View File

@ -1926,7 +1926,7 @@ static HRESULT WINAPI ddraw7_GetAvailableVidMem(IDirectDraw7 *iface, DDSCAPS2 *C
struct wined3d_adapter_identifier desc = {0};
hr = wined3d_get_adapter_identifier(ddraw->wined3d, WINED3DADAPTER_DEFAULT, 0, &desc);
*total = desc.video_memory;
*total = min(UINT_MAX, desc.video_memory);
}
wined3d_mutex_unlock();

View File

@ -20,6 +20,7 @@
#define __WINE_DLLS_DDRAW_DDRAW_PRIVATE_H
#include <assert.h>
#include <limits.h>
#define COBJMACROS
#define NONAMELESSSTRUCT
#define NONAMELESSUNION