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
bb035638
Commit
bb035638
authored
Feb 08, 2010
by
Stefan Dösinger
Committed by
Alexandre Julliard
Feb 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d: Make sure vertexbuffer lock doesn't return a NULL pointer.
parent
24e23086
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
buffer.c
dlls/d3d8/tests/buffer.c
+1
-0
buffer.c
dlls/d3d9/tests/buffer.c
+1
-0
d3d.c
dlls/ddraw/tests/d3d.c
+1
-0
No files found.
dlls/d3d8/tests/buffer.c
View file @
bb035638
...
...
@@ -104,6 +104,7 @@ static void lock_flag_test(IDirect3DDevice8 *device)
if
(
SUCCEEDED
(
hr
))
{
ok
(
data
!=
NULL
,
"The data pointer returned by Lock is NULL
\n
"
);
hr
=
IDirect3DVertexBuffer8_Unlock
(
buffer
);
ok
(
hr
==
D3D_OK
,
"IDirect3DVertexBuffer8_Unlock failed, 0x%08x
\n
"
,
hr
);
}
...
...
dlls/d3d9/tests/buffer.c
View file @
bb035638
...
...
@@ -103,6 +103,7 @@ static void lock_flag_test(IDirect3DDevice9 *device)
if
(
SUCCEEDED
(
hr
))
{
ok
(
data
!=
NULL
,
"The data pointer returned by Lock is NULL
\n
"
);
hr
=
IDirect3DVertexBuffer9_Unlock
(
buffer
);
ok
(
hr
==
D3D_OK
,
"IDirect3DVertexBuffer9_Unlock failed, 0x%08x
\n
"
,
hr
);
}
...
...
dlls/ddraw/tests/d3d.c
View file @
bb035638
...
...
@@ -3216,6 +3216,7 @@ static void VertexBufferLockRest(void)
test_data
[
i
].
debug_string
,
hr
,
test_data
[
i
].
result
);
if
(
SUCCEEDED
(
hr
))
{
ok
(
data
!=
NULL
,
"The data pointer returned by Lock is NULL
\n
"
);
hr
=
IDirect3DVertexBuffer7_Unlock
(
buffer
);
ok
(
hr
==
D3D_OK
,
"IDirect3DVertexBuffer7_Unlock failed, 0x%08x
\n
"
,
hr
);
}
...
...
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