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
4ae5380c
Commit
4ae5380c
authored
Jul 22, 2002
by
Michael Karcher
Committed by
Alexandre Julliard
Jul 22, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the correct length of the struct DDSURFACEDESC.
parent
e33f327f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
thunks.c
dlls/ddraw/ddraw/thunks.c
+5
-1
ddraw.h
include/ddraw.h
+1
-1
No files found.
dlls/ddraw/ddraw/thunks.c
View file @
4ae5380c
...
...
@@ -326,9 +326,13 @@ struct displaymodescallback_context
static
HRESULT
CALLBACK
EnumDisplayModesCallbackThunk
(
LPDDSURFACEDESC2
pDDSD2
,
LPVOID
context
)
{
DDSURFACEDESC
DDSD
;
struct
displaymodescallback_context
*
cbcontext
=
context
;
return
cbcontext
->
func
((
LPDDSURFACEDESC
)
pDDSD2
,
cbcontext
->
context
);
memcpy
(
&
DDSD
,
pDDSD2
,
sizeof
DDSD
);
DDSD
.
dwSize
=
sizeof
DDSD
;
return
cbcontext
->
func
(
&
DDSD
,
cbcontext
->
context
);
}
static
HRESULT
WINAPI
...
...
include/ddraw.h
View file @
4ae5380c
...
...
@@ -979,7 +979,7 @@ typedef struct _DDSURFACEDESC
typedef
struct
_DDSURFACEDESC2
{
DWORD
dwSize
;
/* 0: size of the DDSURFACEDESC structure*/
DWORD
dwSize
;
/* 0: size of the DDSURFACEDESC
2
structure*/
DWORD
dwFlags
;
/* 4: determines what fields are valid*/
DWORD
dwHeight
;
/* 8: height of surface to be created*/
DWORD
dwWidth
;
/* C: width of input surface*/
...
...
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