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
b8a76c60
Commit
b8a76c60
authored
Aug 19, 2007
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Handle case where no printer is configured.
parent
b3c369d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
printdlg.c
dlls/comdlg32/tests/printdlg.c
+7
-1
No files found.
dlls/comdlg32/tests/printdlg.c
View file @
b8a76c60
...
...
@@ -73,10 +73,16 @@ static void test_PageSetupDlgA(void)
pDlg
->
Flags
=
PSD_RETURNDEFAULT
;
SetLastError
(
0xdeadbeef
);
res
=
PageSetupDlgA
(
pDlg
);
trace
(
"after pagesetupdlga res = %d, le %d, ext error 0x%x
\n
"
,
res
,
GetLastError
(),
CommDlgExtendedError
());
ok
(
res
||
(
CommDlgExtendedError
()
==
PDERR_NODEFAULTPRN
),
"returned %u with %u and 0x%x (expected '!= 0' or '0' and "
"PDERR_NODEFAULTPRN)
\n
"
,
res
,
GetLastError
(),
CommDlgExtendedError
());
if
(
!
res
&&
(
CommDlgExtendedError
()
==
PDERR_NODEFAULTPRN
))
{
skip
(
"No printer configured.
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
pDlg
);
return
;
}
ok
(
pDlg
->
hDevMode
&&
pDlg
->
hDevNames
,
"got %p and %p (expected '!= NULL' for both)
\n
"
,
pDlg
->
hDevMode
,
pDlg
->
hDevNames
);
...
...
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