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
fa00fce6
Commit
fa00fce6
authored
Apr 03, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Apr 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Correct the padding calculation when there is no buffer.
parent
25f9d6e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
info.c
dlls/winspool.drv/info.c
+2
-2
No files found.
dlls/winspool.drv/info.c
View file @
fa00fce6
...
...
@@ -7299,7 +7299,7 @@ static BOOL get_job_info_2(job_t *job, JOB_INFO_2W *ji2, LPBYTE buf, DWORD cbBuf
else
{
/* align DEVMODE to a DWORD boundary */
shift
=
(
4
-
(
(
DWORD_PTR
)
ptr
&
3
))
&
3
;
shift
=
(
4
-
(
*
pcbNeeded
&
3
))
&
3
;
size
+=
shift
;
if
(
size
<=
left
)
...
...
@@ -7308,7 +7308,7 @@ static BOOL get_job_info_2(job_t *job, JOB_INFO_2W *ji2, LPBYTE buf, DWORD cbBuf
memcpy
(
ptr
,
devmode
,
size
-
shift
);
ji2
->
pDevMode
=
(
LPDEVMODEW
)
ptr
;
if
(
!
unicode
)
HeapFree
(
GetProcessHeap
(),
0
,
dmA
);
ptr
+=
size
;
ptr
+=
size
-
shift
;
left
-=
size
;
}
else
...
...
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