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
6d1ba98f
Commit
6d1ba98f
authored
Feb 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix a test that fails on Win2k.
parent
1e2b0ad4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
ddrawmodes.c
dlls/ddraw/tests/ddrawmodes.c
+6
-3
No files found.
dlls/ddraw/tests/ddrawmodes.c
View file @
6d1ba98f
...
...
@@ -665,9 +665,10 @@ static void testddraw7(void)
{
dddi2Bytes
=
FIELD_OFFSET
(
DDDEVICEIDENTIFIER2
,
dwWHQLLevel
)
+
sizeof
(
DWORD
);
pdddi2
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dddi2Bytes
+
sizeof
(
DWORD
)
);
pdddi2
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dddi2Bytes
+
2
*
sizeof
(
DWORD
)
);
pend
=
(
DWORD
*
)((
char
*
)
pdddi2
+
dddi2Bytes
);
*
pend
=
0xdeadbeef
;
pend
[
0
]
=
0xdeadbeef
;
pend
[
1
]
=
0xdeadbeef
;
hr
=
IDirectDraw7_GetDeviceIdentifier
(
dd7
,
pdddi2
,
0
);
ok
(
hr
==
DD_OK
,
"get device identifier failed with %08x
\n
"
,
hr
);
...
...
@@ -678,7 +679,9 @@ static void testddraw7(void)
ok
(
pdddi2
->
szDriver
[
MAX_DDDEVICEID_STRING
-
1
]
==
0
,
"szDriver not cleared
\n
"
);
ok
(
pdddi2
->
szDescription
[
MAX_DDDEVICEID_STRING
-
1
]
==
0
,
"szDescription not cleared
\n
"
);
/* verify that 8 byte structure size alignment will not overwrite memory */
ok
(
*
pend
==
0xdeadbeef
,
"memory beyond DDDEVICEIDENTIFIER2 overwritten
\n
"
);
ok
(
pend
[
0
]
==
0xdeadbeef
||
broken
(
pend
[
0
]
!=
0xdeadbeef
),
/* win2k */
"memory beyond DDDEVICEIDENTIFIER2 overwritten
\n
"
);
ok
(
pend
[
1
]
==
0xdeadbeef
,
"memory beyond DDDEVICEIDENTIFIER2 overwritten
\n
"
);
}
IDirectDraw_Release
(
dd7
);
...
...
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