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
7d0ab835
Commit
7d0ab835
authored
Feb 05, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Use assignment instead of memcpy to copy structs.
parent
e1b6dc57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
dsurface.c
dlls/ddraw/tests/dsurface.c
+8
-8
No files found.
dlls/ddraw/tests/dsurface.c
View file @
7d0ab835
...
...
@@ -3872,13 +3872,13 @@ static void CreateSurfaceBadCapsSizeTest(void)
ddsd_ok
.
dwWidth
=
64
;
ddsd_ok
.
dwHeight
=
64
;
ddsd_ok
.
ddsCaps
.
dwCaps
=
caps
;
memcpy
(
&
ddsd_bad1
,
&
ddsd_ok
,
sizeof
(
ddsd_bad1
))
;
ddsd_bad1
=
ddsd_ok
;
ddsd_bad1
.
dwSize
--
;
memcpy
(
&
ddsd_bad2
,
&
ddsd_ok
,
sizeof
(
ddsd_bad2
))
;
ddsd_bad2
=
ddsd_ok
;
ddsd_bad2
.
dwSize
++
;
memcpy
(
&
ddsd_bad3
,
&
ddsd_ok
,
sizeof
(
ddsd_bad3
))
;
ddsd_bad3
=
ddsd_ok
;
ddsd_bad3
.
dwSize
=
0
;
memcpy
(
&
ddsd_bad4
,
&
ddsd_ok
,
sizeof
(
ddsd_bad4
))
;
ddsd_bad4
=
ddsd_ok
;
ddsd_bad4
.
dwSize
=
sizeof
(
DDSURFACEDESC2
);
memset
(
&
ddsd2_ok
,
0
,
sizeof
(
ddsd2_ok
));
...
...
@@ -3887,13 +3887,13 @@ static void CreateSurfaceBadCapsSizeTest(void)
ddsd2_ok
.
dwWidth
=
64
;
ddsd2_ok
.
dwHeight
=
64
;
ddsd2_ok
.
ddsCaps
.
dwCaps
=
caps
;
memcpy
(
&
ddsd2_bad1
,
&
ddsd2_ok
,
sizeof
(
ddsd2_bad1
))
;
ddsd2_bad1
=
ddsd2_ok
;
ddsd2_bad1
.
dwSize
--
;
memcpy
(
&
ddsd2_bad2
,
&
ddsd2_ok
,
sizeof
(
ddsd2_bad2
))
;
ddsd2_bad2
=
ddsd2_ok
;
ddsd2_bad2
.
dwSize
++
;
memcpy
(
&
ddsd2_bad3
,
&
ddsd2_ok
,
sizeof
(
ddsd2_bad3
))
;
ddsd2_bad3
=
ddsd2_ok
;
ddsd2_bad3
.
dwSize
=
0
;
memcpy
(
&
ddsd2_bad4
,
&
ddsd2_ok
,
sizeof
(
ddsd2_bad4
))
;
ddsd2_bad4
=
ddsd2_ok
;
ddsd2_bad4
.
dwSize
=
sizeof
(
DDSURFACEDESC
);
hr
=
IDirectDraw_CreateSurface
(
lpDD
,
&
ddsd_ok
,
&
surf
,
NULL
);
...
...
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