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
ed416733
Commit
ed416733
authored
Mar 18, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Mar 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Add HDC tests for PrintDlgEx.
parent
24047e90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
printdlg.c
dlls/comdlg32/tests/printdlg.c
+26
-0
No files found.
dlls/comdlg32/tests/printdlg.c
View file @
ed416733
...
...
@@ -344,6 +344,32 @@ static void test_PrintDlgExW(void)
GlobalFree
(
pDlg
->
hDevMode
);
GlobalFree
(
pDlg
->
hDevNames
);
/* this works: PD_RETURNDC with PD_RETURNDEFAULT */
ZeroMemory
(
pDlg
,
sizeof
(
PRINTDLGEXW
));
pDlg
->
lStructSize
=
sizeof
(
PRINTDLGEXW
);
pDlg
->
hwndOwner
=
GetDesktopWindow
();
pDlg
->
Flags
=
PD_RETURNDEFAULT
|
PD_NOWARNING
|
PD_NOPAGENUMS
|
PD_RETURNDC
;
pDlg
->
nStartPage
=
START_PAGE_GENERAL
;
res
=
pPrintDlgExW
(
pDlg
);
ok
(
res
==
S_OK
,
"got 0x%x (expected S_OK)
\n
"
,
res
);
ok
(
pDlg
->
hDC
!=
NULL
,
"HDC missing for PD_RETURNDC
\n
"
);
GlobalFree
(
pDlg
->
hDevMode
);
GlobalFree
(
pDlg
->
hDevNames
);
DeleteDC
(
pDlg
->
hDC
);
/* this works: PD_RETURNIC with PD_RETURNDEFAULT */
ZeroMemory
(
pDlg
,
sizeof
(
PRINTDLGEXW
));
pDlg
->
lStructSize
=
sizeof
(
PRINTDLGEXW
);
pDlg
->
hwndOwner
=
GetDesktopWindow
();
pDlg
->
Flags
=
PD_RETURNDEFAULT
|
PD_NOWARNING
|
PD_NOPAGENUMS
|
PD_RETURNIC
;
pDlg
->
nStartPage
=
START_PAGE_GENERAL
;
res
=
pPrintDlgExW
(
pDlg
);
ok
(
res
==
S_OK
,
"got 0x%x (expected S_OK)
\n
"
,
res
);
ok
(
pDlg
->
hDC
!=
NULL
,
"HDC missing for PD_RETURNIC
\n
"
);
GlobalFree
(
pDlg
->
hDevMode
);
GlobalFree
(
pDlg
->
hDevNames
);
DeleteDC
(
pDlg
->
hDC
);
HeapFree
(
GetProcessHeap
(),
0
,
pDlg
);
return
;
...
...
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