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
e0405286
Commit
e0405286
authored
Jan 11, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Correct the size of a memcmp.
parent
b543c40d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vertexdeclaration.c
dlls/d3d9/tests/vertexdeclaration.c
+2
-2
No files found.
dlls/d3d9/tests/vertexdeclaration.c
View file @
e0405286
...
...
@@ -214,7 +214,7 @@ static void test_get_declaration(IDirect3DVertexDeclaration9 *decl_ptr, D3DVERTE
ok
(
hret
==
D3D_OK
&&
num_elements
==
expected_num_elements
,
"GetDeclaration returned: hret 0x%x, num_elements %d. "
"Expected hret 0x%x, num_elements %d.
\n
"
,
hret
,
num_elements
,
D3D_OK
,
expected_num_elements
);
i
=
memcmp
(
decl
,
vertex_decl
,
sizeof
(
*
vertex_decl
));
i
=
memcmp
(
decl
,
vertex_decl
,
num_elements
*
sizeof
(
*
vertex_decl
));
ok
(
!
i
,
"Original and returned vertexdeclarations are not the same
\n
"
);
ZeroMemory
(
decl
,
sizeof
(
D3DVERTEXELEMENT9
)
*
expected_num_elements
);
...
...
@@ -223,7 +223,7 @@ static void test_get_declaration(IDirect3DVertexDeclaration9 *decl_ptr, D3DVERTE
ok
(
hret
==
D3D_OK
&&
num_elements
==
expected_num_elements
,
"GetDeclaration returned: hret 0x%x, num_elements %d. "
"Expected hret 0x%x, num_elements %d.
\n
"
,
hret
,
num_elements
,
D3D_OK
,
expected_num_elements
);
i
=
memcmp
(
decl
,
vertex_decl
,
sizeof
(
*
vertex_decl
));
i
=
memcmp
(
decl
,
vertex_decl
,
num_elements
*
sizeof
(
*
vertex_decl
));
ok
(
!
i
,
"Original and returned vertexdeclarations are not the same
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
decl
);
...
...
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