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
48c51eea
Commit
48c51eea
authored
Jun 14, 2004
by
Stefan Leichter
Committed by
Alexandre Julliard
Jun 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log the last error too if the tests fail without default printer.
parent
f2d6c19f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
info.c
dlls/winspool/tests/info.c
+10
-7
No files found.
dlls/winspool/tests/info.c
View file @
48c51eea
...
...
@@ -46,17 +46,20 @@ static void test_default_printer(void)
/* only supported on NT like OSes starting with win2k */
return
;
SetLastError
(
ERROR_SUCCESS
);
retval
=
func
(
buffer
,
&
exact
);
if
(
ERROR_FILE_NOT_FOUND
==
GetLastError
())
{
trace
(
"this test requires a default printer to be set
\n
"
);
return
;
}
if
(
!
retval
||
!
exact
||
!
strlen
(
buffer
))
{
ok
(
0
,
"function call GetDefaultPrinterA failed unexpected!
\n
"
if
(
!
retval
||
!
exact
||
!
strlen
(
buffer
)
||
(
ERROR_SUCCESS
!=
GetLastError
()))
{
if
(
ERROR_FILE_NOT_FOUND
==
GetLastError
())
trace
(
"this test requires a default printer to be set
\n
"
);
else
{
ok
(
0
,
"function call GetDefaultPrinterA failed unexpected!
\n
"
"function returned %s
\n
"
"last error 0x%08lx
\n
"
"returned buffer size 0x%08lx
\n
"
"returned buffer content %s
\n
"
,
retval
?
"true"
:
"false"
,
exact
,
buffer
);
retval
?
"true"
:
"false"
,
GetLastError
(),
exact
,
buffer
);
}
return
;
}
SetLastError
(
ERROR_SUCCESS
);
...
...
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