mirror of
https://github.com/reactos/wine.git
synced 2025-01-19 10:13:01 +00:00
d3d: Make sure vertexbuffer lock doesn't return a NULL pointer.
This commit is contained in:
parent
24e2308670
commit
bb035638d0
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user