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
4a5bc137
Commit
4a5bc137
authored
Aug 22, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Silence a warning due to an API change in libpng 1.5.
parent
b5a73035
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
pngformat.c
dlls/windowscodecs/pngformat.c
+4
-3
No files found.
dlls/windowscodecs/pngformat.c
View file @
4a5bc137
...
...
@@ -866,7 +866,8 @@ static HRESULT WINAPI PngDecoder_Frame_GetColorContexts(IWICBitmapFrameDecode *i
UINT
cCount
,
IWICColorContext
**
ppIColorContexts
,
UINT
*
pcActualCount
)
{
PngDecoder
*
This
=
impl_from_IWICBitmapFrameDecode
(
iface
);
png_charp
name
,
profile
;
png_charp
name
;
BYTE
*
profile
;
png_uint_32
len
;
int
compression_type
;
HRESULT
hr
;
...
...
@@ -877,11 +878,11 @@ static HRESULT WINAPI PngDecoder_Frame_GetColorContexts(IWICBitmapFrameDecode *i
EnterCriticalSection
(
&
This
->
lock
);
if
(
ppng_get_iCCP
(
This
->
png_ptr
,
This
->
info_ptr
,
&
name
,
&
compression_type
,
&
profile
,
&
len
))
if
(
ppng_get_iCCP
(
This
->
png_ptr
,
This
->
info_ptr
,
&
name
,
&
compression_type
,
(
void
*
)
&
profile
,
&
len
))
{
if
(
cCount
&&
ppIColorContexts
)
{
hr
=
IWICColorContext_InitializeFromMemory
(
*
ppIColorContexts
,
(
const
BYTE
*
)
profile
,
len
);
hr
=
IWICColorContext_InitializeFromMemory
(
*
ppIColorContexts
,
profile
,
len
);
if
(
FAILED
(
hr
))
{
LeaveCriticalSection
(
&
This
->
lock
);
...
...
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