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
c2cd6f6e
Commit
c2cd6f6e
authored
Jan 20, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Jan 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Use unicode APIs in pagesetup_update_papersize.
parent
11d389e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
printdlg.c
dlls/comdlg32/printdlg.c
+14
-14
No files found.
dlls/comdlg32/printdlg.c
View file @
c2cd6f6e
...
...
@@ -2653,38 +2653,36 @@ static void pagesetup_release_devmode(const PageSetupDataA *pda, DEVMODEW *dm)
static
BOOL
pagesetup_update_papersize
(
PageSetupDataA
*
pda
)
{
DEVNAMES
*
dn
;
DEVMODEA
*
dm
;
LPSTR
devname
,
portname
;
DEVMODEW
*
dm
;
LPWSTR
devname
,
portname
;
int
i
,
num
;
WORD
*
words
=
NULL
,
paperword
;
POINT
*
points
=
NULL
;
BOOL
retval
=
FALSE
;
dn
=
GlobalLock
(
pda
->
dlga
->
hDevNames
);
dm
=
GlobalLock
(
pda
->
dlga
->
hDevMode
);
devname
=
((
char
*
)
dn
)
+
dn
->
wDeviceOffset
;
portname
=
((
char
*
)
dn
)
+
dn
->
wOutputOffset
;
dm
=
pagesetup_get_devmode
(
pda
);
devname
=
pagesetup_get_devname
(
pda
);
portname
=
pagesetup_get_portname
(
pda
);
num
=
DeviceCapabilities
A
(
devname
,
portname
,
DC_PAPERS
,
NULL
,
dm
);
num
=
DeviceCapabilities
W
(
devname
,
portname
,
DC_PAPERS
,
NULL
,
dm
);
if
(
num
<=
0
)
{
FIXME
(
"No papernames found for %s/%s
\n
"
,
de
vname
,
portname
);
FIXME
(
"No papernames found for %s/%s
\n
"
,
de
bugstr_w
(
devname
),
debugstr_w
(
portname
)
);
goto
end
;
}
words
=
HeapAlloc
(
GetProcessHeap
(),
0
,
num
*
sizeof
(
WORD
));
points
=
HeapAlloc
(
GetProcessHeap
(),
0
,
num
*
sizeof
(
POINT
));
if
(
num
!=
DeviceCapabilities
A
(
devname
,
portname
,
DC_PAPERS
,
(
LP
STR
)
words
,
dm
))
if
(
num
!=
DeviceCapabilities
W
(
devname
,
portname
,
DC_PAPERS
,
(
LPW
STR
)
words
,
dm
))
{
FIXME
(
"Number of returned words is not %d
\n
"
,
num
);
goto
end
;
}
if
(
num
!=
DeviceCapabilities
A
(
devname
,
portname
,
DC_PAPERSIZE
,
(
LP
STR
)
points
,
dm
))
if
(
num
!=
DeviceCapabilities
W
(
devname
,
portname
,
DC_PAPERSIZE
,
(
LPW
STR
)
points
,
dm
))
{
FIXME
(
"Number of returned sizes is not %d
\n
"
,
num
);
FIXME
(
"Number of returned sizes is not %d
\n
"
,
num
);
goto
end
;
}
...
...
@@ -2715,8 +2713,10 @@ static BOOL pagesetup_update_papersize(PageSetupDataA *pda)
end:
HeapFree
(
GetProcessHeap
(),
0
,
words
);
HeapFree
(
GetProcessHeap
(),
0
,
points
);
GlobalUnlock
(
pda
->
dlga
->
hDevNames
);
GlobalUnlock
(
pda
->
dlga
->
hDevMode
);
pagesetup_release_portname
(
pda
,
portname
);
pagesetup_release_devname
(
pda
,
devname
);
pagesetup_release_devmode
(
pda
,
dm
);
return
retval
;
}
...
...
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