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
8b154a59
Commit
8b154a59
authored
Dec 06, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix cleanup after errors in GdipCloneImage.
parent
bf04d3fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
image.c
dlls/gdiplus/image.c
+4
-2
No files found.
dlls/gdiplus/image.c
View file @
8b154a59
...
...
@@ -746,12 +746,14 @@ GpStatus WINGDIPAPI GdipCloneImage(GpImage *image, GpImage **cloneImage)
GdipBitmapUnlockBits
((
GpBitmap
*
)
*
cloneImage
,
&
lockeddata_dst
);
}
GdipBitmapUnlockBits
(
bitmap
,
&
lockeddata_src
);
if
(
stat
!=
Ok
)
GdipDisposeImage
(
*
cloneImage
);
}
GdipBitmapUnlockBits
(
bitmap
,
&
lockeddata_src
);
if
(
stat
!=
Ok
)
{
GdipDisposeImage
(
*
cloneImage
);
*
cloneImage
=
NULL
;
}
else
memcpy
(
&
(
*
cloneImage
)
->
format
,
&
image
->
format
,
sizeof
(
GUID
));
...
...
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