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
f4205ad7
Commit
f4205ad7
authored
Dec 21, 2004
by
Crestez Leonard
Committed by
Alexandre Julliard
Dec 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for malformed source rect in DIB_DirectDrawSurfact_BltFast, and
return DDERR_INVALID_RECT.
parent
2b98f325
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
dib.c
dlls/ddraw/dsurface/dib.c
+10
-0
No files found.
dlls/ddraw/dsurface/dib.c
View file @
f4205ad7
...
...
@@ -999,6 +999,16 @@ DIB_DirectDrawSurface_BltFast(LPDIRECTDRAWSURFACE7 iface, DWORD dstx,
rsrc
->
bottom
=
sdesc
.
dwHeight
;
}
/* Check source rect for validity. Copied from normal Blt. Fixes Baldur's Gate.*/
if
((
rsrc
->
bottom
>
sdesc
.
dwHeight
)
||
(
rsrc
->
bottom
<
0
)
||
(
rsrc
->
top
>
sdesc
.
dwHeight
)
||
(
rsrc
->
top
<
0
)
||
(
rsrc
->
left
>
sdesc
.
dwWidth
)
||
(
rsrc
->
left
<
0
)
||
(
rsrc
->
right
>
sdesc
.
dwWidth
)
||
(
rsrc
->
right
<
0
)
||
(
rsrc
->
right
<
rsrc
->
left
)
||
(
rsrc
->
bottom
<
rsrc
->
top
))
{
WARN
(
"Application gave us bad source rectangle for BltFast.
\n
"
);
return
DDERR_INVALIDRECT
;
}
h
=
rsrc
->
bottom
-
rsrc
->
top
;
if
(
h
>
ddesc
.
dwHeight
-
dsty
)
h
=
ddesc
.
dwHeight
-
dsty
;
if
(
h
>
sdesc
.
dwHeight
-
rsrc
->
top
)
h
=
sdesc
.
dwHeight
-
rsrc
->
top
;
...
...
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