ddraw: Clamp video memory to UINT_MAX in ddraw7_GetAvailableVidMem().
This commit is contained in:
parent
d1d48d3194
commit
1fb7ccdc13
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue