Commit 1fb7ccdc authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent d1d48d31
......@@ -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();
......
......@@ -20,6 +20,7 @@
#define __WINE_DLLS_DDRAW_DDRAW_PRIVATE_H
#include <assert.h>
#include <limits.h>
#define COBJMACROS
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment