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
d8302668
Commit
d8302668
authored
Jun 30, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jun 30, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward StartDocPrinterA to StartDocPrinterW.
Improve trace in the unicode version.
parent
a64a6f94
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
info.c
dlls/winspool/info.c
+37
-2
No files found.
dlls/winspool/info.c
View file @
d8302668
...
...
@@ -1587,8 +1587,39 @@ BOOL WINAPI EndPagePrinter(HANDLE hPrinter)
*/
DWORD
WINAPI
StartDocPrinterA
(
HANDLE
hPrinter
,
DWORD
Level
,
LPBYTE
pDocInfo
)
{
FIXME
(
"(hPrinter=%p, Level=0x%lx, pDocInfo=%p): stub
\n
"
,
hPrinter
,
Level
,
pDocInfo
);
UNICODE_STRING
usBuffer
;
DOC_INFO_2W
doc2W
;
DOC_INFO_2A
*
doc2
=
(
DOC_INFO_2A
*
)
pDocInfo
;
DWORD
ret
;
/* DOC_INFO_1, 2 and 3 all have the strings in the same place with either two (DOC_INFO_2)
or one (DOC_INFO_3) extra DWORDs */
switch
(
Level
)
{
case
2
:
doc2W
.
JobId
=
doc2
->
JobId
;
/* fall through */
case
3
:
doc2W
.
dwMode
=
doc2
->
dwMode
;
/* fall through */
case
1
:
doc2W
.
pDocName
=
asciitounicode
(
&
usBuffer
,
doc2
->
pDocName
);
doc2W
.
pOutputFile
=
asciitounicode
(
&
usBuffer
,
doc2
->
pOutputFile
);
doc2W
.
pDatatype
=
asciitounicode
(
&
usBuffer
,
doc2
->
pDatatype
);
break
;
default:
SetLastError
(
ERROR_INVALID_LEVEL
);
return
FALSE
;
}
ret
=
StartDocPrinterW
(
hPrinter
,
Level
,
(
LPBYTE
)
&
doc2W
);
HeapFree
(
GetProcessHeap
(),
0
,
doc2W
.
pDatatype
);
HeapFree
(
GetProcessHeap
(),
0
,
doc2W
.
pOutputFile
);
HeapFree
(
GetProcessHeap
(),
0
,
doc2W
.
pDocName
);
return
ret
;
}
/*****************************************************************************
...
...
@@ -1596,7 +1627,11 @@ DWORD WINAPI StartDocPrinterA(HANDLE hPrinter, DWORD Level, LPBYTE pDocInfo)
*/
DWORD
WINAPI
StartDocPrinterW
(
HANDLE
hPrinter
,
DWORD
Level
,
LPBYTE
pDocInfo
)
{
FIXME
(
"(hPrinter=%p, Level=0x%lx, pDocInfo=%p): stub
\n
"
,
hPrinter
,
Level
,
pDocInfo
);
DOC_INFO_2W
*
doc
=
(
DOC_INFO_2W
*
)
pDocInfo
;
FIXME
(
"(hPrinter = %p, Level = %ld, pDocInfo = %p {pDocName = %s, pOutputFile = %s, pDatatype = %s}): stub
\n
"
,
hPrinter
,
Level
,
doc
,
debugstr_w
(
doc
->
pDocName
),
debugstr_w
(
doc
->
pOutputFile
),
debugstr_w
(
doc
->
pDatatype
));
return
FALSE
;
}
...
...
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