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
25f33cb0
Commit
25f33cb0
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Do not cast NULL.
parent
b609a5c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
olepicture.c
dlls/oleaut32/olepicture.c
+1
-3
ungif.c
dlls/oleaut32/ungif.c
+6
-6
No files found.
dlls/oleaut32/olepicture.c
View file @
25f33cb0
...
...
@@ -1610,9 +1610,7 @@ succ:
end:
if
(
png_ptr
)
ppng_destroy_read_struct
(
&
png_ptr
,
(
info_ptr
?
&
info_ptr
:
(
png_infopp
)
NULL
),
(
png_infopp
)
NULL
);
ppng_destroy_read_struct
(
&
png_ptr
,
info_ptr
?
&
info_ptr
:
NULL
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
row_pointers
);
HeapFree
(
GetProcessHeap
(),
0
,
pngdata
);
return
ret
;
...
...
dlls/oleaut32/ungif.c
View file @
25f33cb0
...
...
@@ -148,16 +148,16 @@ MakeMapObject(int ColorCount,
/*** FIXME: Our ColorCount has to be a power of two. Is it necessary to
* make the user know that or should we automatically round up instead? */
if
(
ColorCount
!=
(
1
<<
BitSize
(
ColorCount
)))
{
return
((
ColorMapObject
*
)
NULL
)
;
return
NULL
;
}
Object
=
ungif_alloc
(
sizeof
(
ColorMapObject
));
if
(
Object
==
(
ColorMapObject
*
)
NULL
)
{
return
((
ColorMapObject
*
)
NULL
)
;
if
(
Object
==
NULL
)
{
return
NULL
;
}
Object
->
Colors
=
ungif_calloc
(
ColorCount
,
sizeof
(
GifColorType
));
if
(
Object
->
Colors
==
(
GifColorType
*
)
NULL
)
{
if
(
Object
->
Colors
==
NULL
)
{
return
NULL
;
}
...
...
@@ -413,9 +413,9 @@ DGifGetImageDesc(GifFileType * GifFile) {
return
GIF_ERROR
;
}
}
sp
->
RasterBits
=
(
unsigned
char
*
)
NULL
;
sp
->
RasterBits
=
NULL
;
sp
->
ExtensionBlockCount
=
0
;
sp
->
ExtensionBlocks
=
(
ExtensionBlock
*
)
NULL
;
sp
->
ExtensionBlocks
=
NULL
;
GifFile
->
ImageCount
++
;
...
...
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