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
950514c8
Commit
950514c8
authored
Jan 14, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddrawex/tests: Don't crash on win9x.
parent
b8cde623
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
surface.c
dlls/ddrawex/tests/surface.c
+8
-0
No files found.
dlls/ddrawex/tests/surface.c
View file @
950514c8
...
@@ -81,6 +81,10 @@ static void GetDCTest_main(DDSURFACEDESC *ddsd, DDSURFACEDESC2 *ddsd2, void (*te
...
@@ -81,6 +81,10 @@ static void GetDCTest_main(DDSURFACEDESC *ddsd, DDSURFACEDESC2 *ddsd2, void (*te
IDirectDraw4
*
dd4
;
IDirectDraw4
*
dd4
;
hr
=
IDirectDraw_CreateSurface
(
dd1
,
ddsd
,
&
surf
,
NULL
);
hr
=
IDirectDraw_CreateSurface
(
dd1
,
ddsd
,
&
surf
,
NULL
);
if
(
hr
==
DDERR_UNSUPPORTEDMODE
)
{
win_skip
(
"Unsupported mode
\n
"
);
return
;
}
ok
(
hr
==
DD_OK
,
"IDirectDraw_CreateSurface failed: 0x%08x
\n
"
,
hr
);
ok
(
hr
==
DD_OK
,
"IDirectDraw_CreateSurface failed: 0x%08x
\n
"
,
hr
);
testfunc
(
surf
,
1
);
testfunc
(
surf
,
1
);
IDirectDrawSurface_Release
(
surf
);
IDirectDrawSurface_Release
(
surf
);
...
@@ -164,6 +168,10 @@ static void CapsTest(void)
...
@@ -164,6 +168,10 @@ static void CapsTest(void)
ddsd
.
dwWidth
=
64
;
ddsd
.
dwWidth
=
64
;
ddsd
.
dwHeight
=
64
;
ddsd
.
dwHeight
=
64
;
hr
=
IDirectDraw_CreateSurface
(
dd1
,
&
ddsd
,
&
surf
,
NULL
);
hr
=
IDirectDraw_CreateSurface
(
dd1
,
&
ddsd
,
&
surf
,
NULL
);
if
(
hr
==
DDERR_UNSUPPORTEDMODE
)
{
win_skip
(
"Unsupported mode
\n
"
);
return
;
}
ok
(
hr
==
DD_OK
,
"Creating a SYSMEM | VIDMEM surface returned 0x%08x, expected DD_OK
\n
"
,
hr
);
ok
(
hr
==
DD_OK
,
"Creating a SYSMEM | VIDMEM surface returned 0x%08x, expected DD_OK
\n
"
,
hr
);
if
(
surf
)
IDirectDrawSurface_Release
(
surf
);
if
(
surf
)
IDirectDrawSurface_Release
(
surf
);
...
...
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