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
65ab4b2c
Commit
65ab4b2c
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: Remove outdated/unused code.
parent
41c4357f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
38 deletions
+9
-38
printdlg.c
dlls/comdlg32/tests/printdlg.c
+9
-38
No files found.
dlls/comdlg32/tests/printdlg.c
View file @
65ab4b2c
...
...
@@ -36,7 +36,6 @@
/* ########################### */
static
HMODULE
hcomdlg32
;
static
HRESULT
(
WINAPI
*
pPrintDlgExA
)(
LPPRINTDLGEXA
);
static
HRESULT
(
WINAPI
*
pPrintDlgExW
)(
LPPRINTDLGEXW
);
/* ########################### */
...
...
@@ -46,27 +45,6 @@ static const CHAR PrinterPortsA[] = "PrinterPorts";
/* ########################### */
static
LPCSTR
load_functions
(
void
)
{
LPCSTR
ptr
;
ptr
=
"comdlg32.dll"
;
hcomdlg32
=
GetModuleHandleA
(
ptr
);
ptr
=
"PrintDlgExA"
;
pPrintDlgExA
=
(
void
*
)
GetProcAddress
(
hcomdlg32
,
ptr
);
if
(
!
pPrintDlgExA
)
return
ptr
;
ptr
=
"PrintDlgExW"
;
pPrintDlgExW
=
(
void
*
)
GetProcAddress
(
hcomdlg32
,
ptr
);
if
(
!
pPrintDlgExW
)
return
ptr
;
return
NULL
;
}
/* ########################### */
static
void
test_PageSetupDlgA
(
void
)
{
LPPAGESETUPDLGA
pDlg
;
...
...
@@ -237,15 +215,16 @@ static void test_PrintDlgExW(void)
LPPRINTDLGEXW
pDlg
;
HRESULT
res
;
/* PrintDlgEx not present before w2k */
if
(
!
pPrintDlgExW
)
{
skip
(
"PrintDlgExW not available
\n
"
);
return
;
}
/* Set CommDlgExtendedError != 0 */
PrintDlg
(
NULL
);
SetLastError
(
0xdeadbeef
);
res
=
pPrintDlgExW
(
NULL
);
if
(
res
==
E_NOTIMPL
)
{
win_skip
(
"PrintDlgExW returns not implemented
\n
"
);
return
;
}
ok
(
(
res
==
E_INVALIDARG
),
"got 0x%x with %u and %u (expected 'E_INVALIDARG')
\n
"
,
res
,
GetLastError
(),
CommDlgExtendedError
());
...
...
@@ -371,19 +350,11 @@ end:
START_TEST
(
printdlg
)
{
LPCSTR
ptr
;
ptr
=
load_functions
();
hcomdlg32
=
GetModuleHandleA
(
"comdlg32.dll"
);
pPrintDlgExW
=
(
void
*
)
GetProcAddress
(
hcomdlg32
,
"PrintDlgExW"
);
test_PageSetupDlgA
();
test_PrintDlgA
();
test_abort_proc
();
/* PrintDlgEx not present before w2k */
if
(
ptr
)
{
win_skip
(
"%s
\n
"
,
ptr
);
return
;
}
test_PrintDlgExW
();
test_abort_proc
();
}
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