Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9e44c4bc
Commit
9e44c4bc
authored
Mar 12, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix a couple of return value checks.
parent
93afc43e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+1
-1
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+1
-1
ddrawmodes.c
dlls/ddraw/tests/ddrawmodes.c
+1
-1
dsurface.c
dlls/ddraw/tests/dsurface.c
+5
-5
visual.c
dlls/ddraw/tests/visual.c
+2
-2
No files found.
dlls/ddraw/tests/ddraw1.c
View file @
9e44c4bc
...
...
@@ -1249,7 +1249,7 @@ static void test_ck_rgba(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to create destination surface, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_QueryInterface
(
surface
,
&
IID_IDirect3DTexture
,
(
void
**
)
&
texture
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get texture interface, hr %#x.
\n
"
,
hr
);
IDirect3DTexture_GetHandle
(
texture
,
device
,
&
texture_handle
);
hr
=
IDirect3DTexture_GetHandle
(
texture
,
device
,
&
texture_handle
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get texture handle, hr %#x.
\n
"
,
hr
);
IDirect3DTexture_Release
(
texture
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
9e44c4bc
...
...
@@ -1511,7 +1511,7 @@ static void test_ck_rgba(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to create destination surface, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_QueryInterface
(
surface
,
&
IID_IDirect3DTexture2
,
(
void
**
)
&
texture
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get texture interface, hr %#x.
\n
"
,
hr
);
IDirect3DTexture2_GetHandle
(
texture
,
device
,
&
texture_handle
);
hr
=
IDirect3DTexture2_GetHandle
(
texture
,
device
,
&
texture_handle
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get texture handle, hr %#x.
\n
"
,
hr
);
IDirect3DTexture2_Release
(
texture
);
...
...
dlls/ddraw/tests/ddrawmodes.c
View file @
9e44c4bc
...
...
@@ -624,7 +624,7 @@ static void testsurface(void)
SetBkColor
(
hdc
,
RGB
(
0
,
0
,
255
));
SetTextColor
(
hdc
,
RGB
(
255
,
255
,
0
));
TextOut
(
hdc
,
0
,
0
,
testMsg
,
lstrlen
(
testMsg
));
IDirectDrawSurface_ReleaseDC
(
lpDDSBack
,
hdc
);
rc
=
IDirectDrawSurface_ReleaseDC
(
lpDDSBack
,
hdc
);
ok
(
rc
==
DD_OK
,
"IDirectDrawSurface_ReleaseDC returned: %x
\n
"
,
rc
);
while
(
1
)
...
...
dlls/ddraw/tests/dsurface.c
View file @
9e44c4bc
...
...
@@ -2947,7 +2947,7 @@ static void PaletteTest(void)
if
(
FAILED
(
hr
))
goto
err
;
/* Read back the palette and verify the entries. Without DDPCAPS_ALLOW256 set
/ entry 0 and 255 should have been overwritten with black and white */
IDirectDrawPalette_GetEntries
(
palette
,
0
,
0
,
256
,
&
palEntries
[
0
]);
hr
=
IDirectDrawPalette_GetEntries
(
palette
,
0
,
0
,
256
,
&
palEntries
[
0
]);
ok
(
hr
==
DD_OK
,
"GetEntries failed with %08x
\n
"
,
hr
);
if
(
hr
==
DD_OK
)
{
...
...
@@ -2967,9 +2967,9 @@ static void PaletteTest(void)
/* CreatePalette without DDPCAPS_ALLOW256 ignores entry 0 and 255,
/ now check we are able to update the entries afterwards. */
IDirectDrawPalette_SetEntries
(
palette
,
0
,
0
,
256
,
&
Table
[
0
]);
hr
=
IDirectDrawPalette_SetEntries
(
palette
,
0
,
0
,
256
,
&
Table
[
0
]);
ok
(
hr
==
DD_OK
,
"SetEntries failed with %08x
\n
"
,
hr
);
IDirectDrawPalette_GetEntries
(
palette
,
0
,
0
,
256
,
&
palEntries
[
0
]);
hr
=
IDirectDrawPalette_GetEntries
(
palette
,
0
,
0
,
256
,
&
palEntries
[
0
]);
ok
(
hr
==
DD_OK
,
"GetEntries failed with %08x
\n
"
,
hr
);
if
(
hr
==
DD_OK
)
{
...
...
@@ -2987,7 +2987,7 @@ static void PaletteTest(void)
ok
(
hr
==
DD_OK
,
"CreatePalette failed with %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
err
;
IDirectDrawPalette_GetEntries
(
palette
,
0
,
0
,
256
,
&
palEntries
[
0
]);
hr
=
IDirectDrawPalette_GetEntries
(
palette
,
0
,
0
,
256
,
&
palEntries
[
0
]);
ok
(
hr
==
DD_OK
,
"GetEntries failed with %08x
\n
"
,
hr
);
if
(
hr
==
DD_OK
)
{
...
...
@@ -3752,7 +3752,7 @@ static void GetDCFormatTest(void)
if
(
SUCCEEDED
(
hr
))
{
IDirectDrawSurface7_ReleaseDC
(
surface
,
dc
);
hr
=
IDirectDrawSurface7_ReleaseDC
(
surface
,
dc
);
ok
(
hr
==
DD_OK
,
"IDirectDrawSurface7_ReleaseDC failed, hr = 0x%08x
\n
"
,
hr
);
dc
=
0
;
}
...
...
dlls/ddraw/tests/visual.c
View file @
9e44c4bc
...
...
@@ -234,7 +234,7 @@ static void set_viewport_size(IDirect3DDevice7 *device)
memset
(
&
ddsd
,
0
,
sizeof
(
ddsd
));
ddsd
.
dwSize
=
sizeof
(
ddsd
);
IDirectDrawSurface7_GetSurfaceDesc
(
target
,
&
ddsd
);
hr
=
IDirectDrawSurface7_GetSurfaceDesc
(
target
,
&
ddsd
);
ok
(
hr
==
D3D_OK
,
"IDirectDrawSurface7_GetSurfaceDesc returned %08x
\n
"
,
hr
);
IDirectDrawSurface7_Release
(
target
);
...
...
@@ -360,7 +360,7 @@ static void lighting_test(IDirect3DDevice7 *device)
Indices
,
6
/* Indexcount */
,
0
/* flags */
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_DrawIndexedPrimitiveUP failed with %08x
\n
"
,
hr
);
IDirect3DDevice7_EndScene
(
device
);
hr
=
IDirect3DDevice7_EndScene
(
device
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_EndScene failed with %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