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
ae8c2ec2
Commit
ae8c2ec2
authored
Dec 20, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Don't cast NULL.
parent
6c7c2401
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pngformat.c
dlls/windowscodecs/pngformat.c
+3
-3
No files found.
dlls/windowscodecs/pngformat.c
View file @
ae8c2ec2
...
...
@@ -235,7 +235,7 @@ static HRESULT WINAPI PngDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p
This
->
info_ptr
=
ppng_create_info_struct
(
This
->
png_ptr
);
if
(
!
This
->
info_ptr
)
{
ppng_destroy_read_struct
(
&
This
->
png_ptr
,
(
png_infopp
)
NULL
,
(
png_infopp
)
NULL
);
ppng_destroy_read_struct
(
&
This
->
png_ptr
,
NULL
,
NULL
);
This
->
png_ptr
=
NULL
;
return
E_FAIL
;
}
...
...
@@ -243,7 +243,7 @@ static HRESULT WINAPI PngDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p
This
->
end_info
=
ppng_create_info_struct
(
This
->
png_ptr
);
if
(
!
This
->
info_ptr
)
{
ppng_destroy_read_struct
(
&
This
->
png_ptr
,
&
This
->
info_ptr
,
(
png_infopp
)
NULL
);
ppng_destroy_read_struct
(
&
This
->
png_ptr
,
&
This
->
info_ptr
,
NULL
);
This
->
png_ptr
=
NULL
;
return
E_FAIL
;
}
...
...
@@ -1107,7 +1107,7 @@ static HRESULT WINAPI PngEncoder_Initialize(IWICBitmapEncoder *iface,
This
->
info_ptr
=
ppng_create_info_struct
(
This
->
png_ptr
);
if
(
!
This
->
info_ptr
)
{
ppng_destroy_write_struct
(
&
This
->
png_ptr
,
(
png_infopp
)
NULL
);
ppng_destroy_write_struct
(
&
This
->
png_ptr
,
NULL
);
This
->
png_ptr
=
NULL
;
return
E_FAIL
;
}
...
...
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