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
b43f13f8
Commit
b43f13f8
authored
Nov 03, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Nov 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix invalid argument passed to ExtCreateRegion.
parent
7796661b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
painting.c
dlls/user32/painting.c
+2
-2
winpos.c
dlls/user32/winpos.c
+3
-3
No files found.
dlls/user32/painting.c
View file @
b43f13f8
...
...
@@ -139,7 +139,7 @@ static void update_visible_region( struct dce *dce )
data
->
rdh
.
iType
=
RDH_RECTANGLES
;
data
->
rdh
.
nCount
=
reply_size
/
sizeof
(
RECT
);
data
->
rdh
.
nRgnSize
=
reply_size
;
vis_rgn
=
ExtCreateRegion
(
NULL
,
s
ize
,
data
);
vis_rgn
=
ExtCreateRegion
(
NULL
,
data
->
rdh
.
dwSize
+
data
->
rdh
.
nRgnS
ize
,
data
);
top_win
=
wine_server_ptr_handle
(
reply
->
top_win
);
win_rect
.
left
=
reply
->
win_rect
.
left
;
...
...
@@ -557,7 +557,7 @@ static HRGN get_update_region( HWND hwnd, UINT *flags, HWND *child )
data
->
rdh
.
iType
=
RDH_RECTANGLES
;
data
->
rdh
.
nCount
=
reply_size
/
sizeof
(
RECT
);
data
->
rdh
.
nRgnSize
=
reply_size
;
hrgn
=
ExtCreateRegion
(
NULL
,
s
ize
,
data
);
hrgn
=
ExtCreateRegion
(
NULL
,
data
->
rdh
.
dwSize
+
data
->
rdh
.
nRgnS
ize
,
data
);
if
(
child
)
*
child
=
wine_server_ptr_handle
(
reply
->
child
);
*
flags
=
reply
->
flags
;
}
...
...
dlls/user32/winpos.c
View file @
b43f13f8
...
...
@@ -131,7 +131,7 @@ int WINAPI GetWindowRgn ( HWND hwnd, HRGN hrgn )
data
->
rdh
.
iType
=
RDH_RECTANGLES
;
data
->
rdh
.
nCount
=
reply_size
/
sizeof
(
RECT
);
data
->
rdh
.
nRgnSize
=
reply_size
;
win_rgn
=
ExtCreateRegion
(
NULL
,
s
ize
,
data
);
win_rgn
=
ExtCreateRegion
(
NULL
,
data
->
rdh
.
dwSize
+
data
->
rdh
.
nRgnS
ize
,
data
);
}
}
else
size
=
reply
->
total_size
;
...
...
@@ -532,7 +532,7 @@ void map_window_region( HWND from, HWND to, HRGN hrgn )
rect
[
i
].
top
+=
offset
.
y
;
rect
[
i
].
bottom
+=
offset
.
y
;
}
if
((
new_rgn
=
ExtCreateRegion
(
NULL
,
data
->
rdh
.
nCount
,
data
)))
if
((
new_rgn
=
ExtCreateRegion
(
NULL
,
data
->
rdh
.
dwSize
+
data
->
rdh
.
nRgnSize
,
data
)))
{
CombineRgn
(
hrgn
,
new_rgn
,
0
,
RGN_COPY
);
DeleteObject
(
new_rgn
);
...
...
@@ -2018,7 +2018,7 @@ static void update_surface_region( HWND hwnd )
data
->
rdh
.
iType
=
RDH_RECTANGLES
;
data
->
rdh
.
nCount
=
reply_size
/
sizeof
(
RECT
);
data
->
rdh
.
nRgnSize
=
reply_size
;
region
=
ExtCreateRegion
(
NULL
,
s
ize
,
data
);
region
=
ExtCreateRegion
(
NULL
,
data
->
rdh
.
dwSize
+
data
->
rdh
.
nRgnS
ize
,
data
);
OffsetRgn
(
region
,
-
reply
->
visible_rect
.
left
,
-
reply
->
visible_rect
.
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