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
45f9ab92
Commit
45f9ab92
authored
Jul 02, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jul 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Declare JobW as a void pointer in SetJobA.
To reduce the number of casts required and avoid a scan-build warning.
parent
044fbbd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
info.c
dlls/winspool.drv/info.c
+5
-5
No files found.
dlls/winspool.drv/info.c
View file @
45f9ab92
...
...
@@ -2979,7 +2979,7 @@ BOOL WINAPI SetJobA(HANDLE hPrinter, DWORD JobId, DWORD Level,
LPBYTE
pJob
,
DWORD
Command
)
{
BOOL
ret
;
LPBYTE
JobW
;
void
*
JobW
;
UNICODE_STRING
usBuffer
;
TRACE
(
"(%p, %ld, %ld, %p, %ld)
\n
"
,
hPrinter
,
JobId
,
Level
,
pJob
,
Command
);
...
...
@@ -2996,7 +2996,7 @@ BOOL WINAPI SetJobA(HANDLE hPrinter, DWORD JobId, DWORD Level,
JOB_INFO_1W
*
info1W
=
malloc
(
sizeof
(
*
info1W
));
JOB_INFO_1A
*
info1A
=
(
JOB_INFO_1A
*
)
pJob
;
JobW
=
(
LPBYTE
)
info1W
;
JobW
=
info1W
;
info1W
->
pUserName
=
asciitounicode
(
&
usBuffer
,
info1A
->
pUserName
);
info1W
->
pDocument
=
asciitounicode
(
&
usBuffer
,
info1A
->
pDocument
);
info1W
->
pDatatype
=
asciitounicode
(
&
usBuffer
,
info1A
->
pDatatype
);
...
...
@@ -3012,7 +3012,7 @@ BOOL WINAPI SetJobA(HANDLE hPrinter, DWORD JobId, DWORD Level,
JOB_INFO_2W
*
info2W
=
malloc
(
sizeof
(
*
info2W
));
JOB_INFO_2A
*
info2A
=
(
JOB_INFO_2A
*
)
pJob
;
JobW
=
(
LPBYTE
)
info2W
;
JobW
=
info2W
;
info2W
->
pUserName
=
asciitounicode
(
&
usBuffer
,
info2A
->
pUserName
);
info2W
->
pDocument
=
asciitounicode
(
&
usBuffer
,
info2A
->
pDocument
);
info2W
->
pNotifyName
=
asciitounicode
(
&
usBuffer
,
info2A
->
pNotifyName
);
...
...
@@ -3045,7 +3045,7 @@ BOOL WINAPI SetJobA(HANDLE hPrinter, DWORD JobId, DWORD Level,
{
case
1
:
{
JOB_INFO_1W
*
info1W
=
(
JOB_INFO_1W
*
)
JobW
;
JOB_INFO_1W
*
info1W
=
JobW
;
free
(
info1W
->
pUserName
);
free
(
info1W
->
pDocument
);
free
(
info1W
->
pDatatype
);
...
...
@@ -3054,7 +3054,7 @@ BOOL WINAPI SetJobA(HANDLE hPrinter, DWORD JobId, DWORD Level,
}
case
2
:
{
JOB_INFO_2W
*
info2W
=
(
JOB_INFO_2W
*
)
JobW
;
JOB_INFO_2W
*
info2W
=
JobW
;
free
(
info2W
->
pUserName
);
free
(
info2W
->
pDocument
);
free
(
info2W
->
pNotifyName
);
...
...
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