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
f63d59d6
Commit
f63d59d6
authored
Apr 05, 2013
by
Tatyana Fokina
Committed by
Alexandre Julliard
Apr 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool.drv: Fix DocumentProperties with empty device name.
parent
401b75e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
info.c
dlls/winspool.drv/info.c
+1
-1
info.c
dlls/winspool.drv/tests/info.c
+4
-0
No files found.
dlls/winspool.drv/info.c
View file @
f63d59d6
...
...
@@ -2358,7 +2358,7 @@ LONG WINAPI DocumentPropertiesA(HWND hWnd,HANDLE hPrinter,
hWnd
,
hPrinter
,
pDeviceName
,
pDevModeOutput
,
pDevModeInput
,
fMode
);
if
(
!
pDeviceName
)
{
if
(
!
pDeviceName
||
!*
pDeviceName
)
{
LPCWSTR
lpNameW
=
get_opened_printer_name
(
hPrinter
);
if
(
!
lpNameW
)
{
ERR
(
"no name from hPrinter?
\n
"
);
...
...
dlls/winspool.drv/tests/info.c
View file @
f63d59d6
...
...
@@ -2653,6 +2653,7 @@ static void test_DocumentProperties(void)
HANDLE
hprn
;
LONG
dm_size
,
ret
;
DEVMODE
*
dm
;
char
empty_str
[]
=
""
;
if
(
!
default_printer
)
{
...
...
@@ -2678,6 +2679,9 @@ static void test_DocumentProperties(void)
ret
=
DocumentProperties
(
0
,
hprn
,
NULL
,
dm
,
dm
,
DM_OUT_BUFFER
);
ok
(
ret
==
IDOK
,
"DocumentProperties ret value %d != expected IDOK
\n
"
,
ret
);
ret
=
DocumentProperties
(
0
,
hprn
,
empty_str
,
dm
,
dm
,
DM_OUT_BUFFER
);
ok
(
ret
==
IDOK
,
"DocumentProperties ret value %d != expected IDOK
\n
"
,
ret
);
test_DEVMODE
(
dm
,
dm_size
,
default_printer
);
HeapFree
(
GetProcessHeap
(),
0
,
dm
);
...
...
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