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
ac59a681
Commit
ac59a681
authored
Jan 09, 2017
by
Andrew Eikum
Committed by
Alexandre Julliard
Jan 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Don't write past end of d3d9 buffer.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f870708c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vmr9.c
dlls/quartz/vmr9.c
+1
-1
No files found.
dlls/quartz/vmr9.c
View file @
ac59a681
...
@@ -260,9 +260,9 @@ static DWORD VMR9_SendSampleData(struct quartz_vmr *This, VMR9PresentationInfo *
...
@@ -260,9 +260,9 @@ static DWORD VMR9_SendSampleData(struct quartz_vmr *This, VMR9PresentationInfo *
lock
.
pBits
=
(
char
*
)
lock
.
pBits
+
(
height
*
lock
.
Pitch
);
lock
.
pBits
=
(
char
*
)
lock
.
pBits
+
(
height
*
lock
.
Pitch
);
while
(
height
--
)
while
(
height
--
)
{
{
lock
.
pBits
=
(
char
*
)
lock
.
pBits
-
lock
.
Pitch
;
memcpy
(
lock
.
pBits
,
data
,
width
*
bmiHeader
->
biBitCount
/
8
);
memcpy
(
lock
.
pBits
,
data
,
width
*
bmiHeader
->
biBitCount
/
8
);
data
=
data
+
width
*
bmiHeader
->
biBitCount
/
8
;
data
=
data
+
width
*
bmiHeader
->
biBitCount
/
8
;
lock
.
pBits
=
(
char
*
)
lock
.
pBits
-
lock
.
Pitch
;
}
}
}
}
else
if
(
lock
.
Pitch
!=
width
*
bmiHeader
->
biBitCount
/
8
)
else
if
(
lock
.
Pitch
!=
width
*
bmiHeader
->
biBitCount
/
8
)
...
...
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