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
ab85b653
Commit
ab85b653
authored
Oct 06, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool.drv: Cast-qual warnings fix.
parent
640d87df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
info.c
dlls/winspool.drv/info.c
+22
-9
No files found.
dlls/winspool.drv/info.c
View file @
ab85b653
...
...
@@ -3727,7 +3727,7 @@ BOOL WINAPI EnumPrintersA(DWORD dwType, LPSTR lpszName,
static
BOOL
WINSPOOL_GetDriverInfoFromReg
(
HKEY
hkeyDrivers
,
LPWSTR
DriverName
,
LP
WSTR
pEnvironment
,
LP
CWSTR
pEnvironment
,
DWORD
Level
,
LPBYTE
ptr
,
/* DRIVER_INFO */
LPBYTE
pDriverStrings
,
/* strings buffer */
...
...
@@ -3774,7 +3774,7 @@ static BOOL WINSPOOL_GetDriverInfoFromReg(
((
PDRIVER_INFO_2A
)
ptr
)
->
cVersion
=
(
GetVersion
()
&
0x80000000
)
?
0
:
3
;
/* FIXME: add 1, 2 */
if
(
!
pEnvironment
)
pEnvironment
=
(
LPWSTR
)
DefaultEnvironmentW
;
pEnvironment
=
DefaultEnvironmentW
;
if
(
unicode
)
size
=
(
lstrlenW
(
pEnvironment
)
+
1
)
*
sizeof
(
WCHAR
);
else
...
...
@@ -6567,17 +6567,30 @@ end:
/*****************************************************************************
* StartDocDlgA [WINSPOOL.@]
*/
LPSTR
WINAPI
StartDocDlgA
(
HANDLE
hPrinter
,
DOCINFOA
*
doc
)
LPSTR
WINAPI
StartDocDlgA
(
HANDLE
hPrinter
,
DOCINFOA
*
doc
)
{
UNICODE_STRING
usBuffer
;
DOCINFOW
docW
;
LPWSTR
retW
;
LPWSTR
docnameW
=
NULL
,
outputW
=
NULL
,
datatypeW
=
NULL
;
LPSTR
ret
=
NULL
;
docW
.
cbSize
=
sizeof
(
docW
);
docW
.
lpszDocName
=
asciitounicode
(
&
usBuffer
,
doc
->
lpszDocName
);
docW
.
lpszOutput
=
asciitounicode
(
&
usBuffer
,
doc
->
lpszOutput
);
docW
.
lpszDatatype
=
asciitounicode
(
&
usBuffer
,
doc
->
lpszDatatype
);
if
(
doc
->
lpszDocName
)
{
docnameW
=
asciitounicode
(
&
usBuffer
,
doc
->
lpszDocName
);
if
(
!
(
docW
.
lpszDocName
=
docnameW
))
return
NULL
;
}
if
(
doc
->
lpszOutput
)
{
outputW
=
asciitounicode
(
&
usBuffer
,
doc
->
lpszOutput
);
if
(
!
(
docW
.
lpszOutput
=
outputW
))
return
NULL
;
}
if
(
doc
->
lpszDatatype
)
{
datatypeW
=
asciitounicode
(
&
usBuffer
,
doc
->
lpszDatatype
);
if
(
!
(
docW
.
lpszDatatype
=
datatypeW
))
return
NULL
;
}
docW
.
fwType
=
doc
->
fwType
;
retW
=
StartDocDlgW
(
hPrinter
,
&
docW
);
...
...
@@ -6590,9 +6603,9 @@ end:
HeapFree
(
GetProcessHeap
(),
0
,
retW
);
}
HeapFree
(
GetProcessHeap
(),
0
,
(
LPWSTR
)
docW
.
lpszDatatype
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPWSTR
)
docW
.
lpszOutput
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPWSTR
)
docW
.
lpszDocName
);
HeapFree
(
GetProcessHeap
(),
0
,
datatypeW
);
HeapFree
(
GetProcessHeap
(),
0
,
outputW
);
HeapFree
(
GetProcessHeap
(),
0
,
docnameW
);
return
ret
;
}
...
...
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