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
4060716d
Commit
4060716d
authored
May 24, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Return correct status code if GdipAlloc fails.
parent
a7d14b0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
region.c
dlls/gdiplus/region.c
+26
-26
No files found.
dlls/gdiplus/region.c
View file @
4060716d
...
...
@@ -254,20 +254,20 @@ GpStatus WINGDIPAPI GdipCombineRegionPath(GpRegion *region, GpPath *path, Combin
}
left
=
GdipAlloc
(
sizeof
(
region_element
));
if
(
!
left
)
goto
out
;
*
left
=
region
->
node
;
stat
=
clone_element
(
&
path_region
->
node
,
&
right
);
if
(
stat
!=
Ok
)
goto
out
;
fuse_region
(
region
,
left
,
right
,
mode
);
GdipDeleteRegion
(
path_region
);
return
Ok
;
if
(
left
)
{
*
left
=
region
->
node
;
stat
=
clone_element
(
&
path_region
->
node
,
&
right
);
if
(
stat
==
Ok
)
{
fuse_region
(
region
,
left
,
right
,
mode
);
GdipDeleteRegion
(
path_region
);
return
Ok
;
}
}
else
stat
=
OutOfMemory
;
out:
GdipFree
(
left
);
GdipDeleteRegion
(
path_region
);
return
stat
;
...
...
@@ -301,20 +301,20 @@ GpStatus WINGDIPAPI GdipCombineRegionRect(GpRegion *region,
}
left
=
GdipAlloc
(
sizeof
(
region_element
));
if
(
!
left
)
goto
out
;
memcpy
(
left
,
&
region
->
node
,
sizeof
(
region_element
));
stat
=
clone_element
(
&
rect_region
->
node
,
&
right
);
if
(
stat
!=
Ok
)
goto
out
;
fuse_region
(
region
,
left
,
right
,
mode
);
GdipDeleteRegion
(
rect_region
);
return
Ok
;
if
(
left
)
{
memcpy
(
left
,
&
region
->
node
,
sizeof
(
region_element
));
stat
=
clone_element
(
&
rect_region
->
node
,
&
right
);
if
(
stat
==
Ok
)
{
fuse_region
(
region
,
left
,
right
,
mode
);
GdipDeleteRegion
(
rect_region
);
return
Ok
;
}
}
else
stat
=
OutOfMemory
;
out:
GdipFree
(
left
);
GdipDeleteRegion
(
rect_region
);
return
stat
;
...
...
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