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
0a64cc69
Commit
0a64cc69
authored
Sep 10, 2001
by
Bill Medland
Committed by
Alexandre Julliard
Sep 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More graceful exit on failure.
parent
ee150c51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
printdlg.c
dlls/commdlg/printdlg.c
+4
-2
No files found.
dlls/commdlg/printdlg.c
View file @
0a64cc69
...
...
@@ -444,7 +444,7 @@ static BOOL PRINTDLG_SetUpPaperComboBox(HWND hDlg,
LPDEVMODEA
dm
)
{
int
i
;
DWORD
NrOfEntries
;
int
NrOfEntries
;
char
*
Names
;
WORD
*
Words
;
DWORD
Sel
;
...
...
@@ -453,7 +453,7 @@ static BOOL PRINTDLG_SetUpPaperComboBox(HWND hDlg,
int
fwCapability_Names
;
int
fwCapability_Words
;
TRACE
(
" Printer: %s,
ComboID: %d
\n
"
,
Printer
Name
,
nIDComboBox
);
TRACE
(
" Printer: %s,
Port: %s, ComboID: %d
\n
"
,
PrinterName
,
Port
Name
,
nIDComboBox
);
/* query the dialog box for the current selected value */
Sel
=
SendDlgItemMessageA
(
hDlg
,
nIDComboBox
,
CB_GETCURSEL
,
0
,
0
);
...
...
@@ -503,6 +503,8 @@ static BOOL PRINTDLG_SetUpPaperComboBox(HWND hDlg,
fwCapability_Names
,
NULL
,
dm
);
if
(
NrOfEntries
==
0
)
WARN
(
"no Name Entries found!
\n
"
);
else
if
(
NrOfEntries
<
0
)
return
FALSE
;
if
(
DeviceCapabilitiesA
(
PrinterName
,
PortName
,
fwCapability_Words
,
NULL
,
dm
)
!=
NrOfEntries
)
{
...
...
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