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
5ae8629f
Commit
5ae8629f
authored
Sep 03, 2012
by
Marcus Meissner
Committed by
Alexandre Julliard
Sep 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Avoid uninitialized usage of bitmap (Coverity).
parent
fcc3a77a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
image.c
dlls/gdiplus/image.c
+12
-10
No files found.
dlls/gdiplus/image.c
View file @
5ae8629f
...
...
@@ -3124,17 +3124,19 @@ static GpStatus decode_image_wic(IStream* stream, REFCLSID clsid, UINT active_fr
IWICBitmapSource_Release
(
source
);
}
bitmap
->
metadata_reader
=
NULL
;
if
(
IWICBitmapFrameDecode_QueryInterface
(
frame
,
&
IID_IWICMetadataBlockReader
,
(
void
**
)
&
block_reader
)
==
S_OK
)
{
UINT
block_count
=
0
;
if
(
IWICMetadataBlockReader_GetCount
(
block_reader
,
&
block_count
)
==
S_OK
&&
block_count
)
IWICMetadataBlockReader_GetReaderByIndex
(
block_reader
,
0
,
&
bitmap
->
metadata_reader
);
IWICMetadataBlockReader_Release
(
block_reader
);
}
if
(
SUCCEEDED
(
hr
))
{
bitmap
->
metadata_reader
=
NULL
;
if
(
IWICBitmapFrameDecode_QueryInterface
(
frame
,
&
IID_IWICMetadataBlockReader
,
(
void
**
)
&
block_reader
)
==
S_OK
)
{
UINT
block_count
=
0
;
if
(
IWICMetadataBlockReader_GetCount
(
block_reader
,
&
block_count
)
==
S_OK
&&
block_count
)
IWICMetadataBlockReader_GetReaderByIndex
(
block_reader
,
0
,
&
bitmap
->
metadata_reader
);
IWICMetadataBlockReader_Release
(
block_reader
);
}
palette
=
get_palette
(
frame
,
palette_type
);
IWICBitmapFrameDecode_Release
(
frame
);
palette
=
get_palette
(
frame
,
palette_type
);
IWICBitmapFrameDecode_Release
(
frame
);
}
}
IWICBitmapDecoder_Release
(
decoder
);
...
...
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