Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1fb7ccdc
Commit
1fb7ccdc
authored
Aug 18, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Clamp video memory to UINT_MAX in ddraw7_GetAvailableVidMem().
parent
d1d48d31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
ddraw.c
dlls/ddraw/ddraw.c
+1
-1
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-0
No files found.
dlls/ddraw/ddraw.c
View file @
1fb7ccdc
...
...
@@ -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
();
...
...
dlls/ddraw/ddraw_private.h
View file @
1fb7ccdc
...
...
@@ -20,6 +20,7 @@
#define __WINE_DLLS_DDRAW_DDRAW_PRIVATE_H
#include <assert.h>
#include <limits.h>
#define COBJMACROS
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment