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
499eaca3
Commit
499eaca3
authored
Jul 03, 2013
by
Francois Gouget
Committed by
Alexandre Julliard
Jul 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
twain_32/tests: Generate an error and skip instead of assert()-ing when the setup fails.
parent
47b56f23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
dsm.c
dlls/twain_32/tests/dsm.c
+10
-4
No files found.
dlls/twain_32/tests/dsm.c
View file @
499eaca3
...
...
@@ -18,7 +18,7 @@
*
*/
#include <stdarg.h>
#include <assert.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
...
...
@@ -33,6 +33,7 @@ static DSMENTRYPROC pDSM_Entry;
static
BOOL
dsm_RegisterWindowClasses
(
void
)
{
WNDCLASSA
cls
;
BOOL
rc
;
cls
.
style
=
0
;
cls
.
lpfnWndProc
=
DefWindowProc
;
...
...
@@ -44,9 +45,10 @@ static BOOL dsm_RegisterWindowClasses(void)
cls
.
hbrBackground
=
GetStockObject
(
WHITE_BRUSH
);
cls
.
lpszMenuName
=
NULL
;
cls
.
lpszClassName
=
"TWAIN_dsm_class"
;
if
(
!
RegisterClassA
(
&
cls
))
return
FALSE
;
return
TRUE
;
rc
=
RegisterClassA
(
&
cls
);
ok
(
rc
,
"RegisterClassA failed: le=%u
\n
"
,
GetLastError
());
return
rc
;
}
...
...
@@ -832,7 +834,11 @@ START_TEST(dsm)
HANDLE
hwnd
;
HMODULE
htwain
;
if
(
!
dsm_RegisterWindowClasses
())
assert
(
0
);
if
(
!
dsm_RegisterWindowClasses
())
{
skip
(
"Could not register the test class, skipping tests
\n
"
);
return
;
}
htwain
=
LoadLibraryA
(
"twain_32.dll"
);
if
(
!
htwain
)
...
...
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