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
bbe91045
Commit
bbe91045
authored
Sep 15, 2007
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Sep 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iccvid: Guard against null pointer reference.
parent
eb22539e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
iccvid.c
dlls/iccvid/iccvid.c
+10
-0
No files found.
dlls/iccvid/iccvid.c
View file @
bbe91045
...
@@ -872,6 +872,11 @@ static LRESULT ICCVID_Decompress( ICCVID_Info *info, ICDECOMPRESS *icd, DWORD si
...
@@ -872,6 +872,11 @@ static LRESULT ICCVID_Decompress( ICCVID_Info *info, ICDECOMPRESS *icd, DWORD si
if
(
(
info
==
NULL
)
||
(
info
->
dwMagic
!=
ICCVID_MAGIC
)
)
if
(
(
info
==
NULL
)
||
(
info
->
dwMagic
!=
ICCVID_MAGIC
)
)
return
ICERR_BADPARAM
;
return
ICERR_BADPARAM
;
if
(
info
->
cvinfo
==
NULL
)
{
ERR
(
"ICM_DECOMPRESS sent after ICM_DECOMPRESS_END
\n
"
);
return
ICERR_BADPARAM
;
}
width
=
icd
->
lpbiInput
->
biWidth
;
width
=
icd
->
lpbiInput
->
biWidth
;
height
=
icd
->
lpbiInput
->
biHeight
;
height
=
icd
->
lpbiInput
->
biHeight
;
...
@@ -890,6 +895,11 @@ static LRESULT ICCVID_DecompressEx( ICCVID_Info *info, ICDECOMPRESSEX *icd, DWOR
...
@@ -890,6 +895,11 @@ static LRESULT ICCVID_DecompressEx( ICCVID_Info *info, ICDECOMPRESSEX *icd, DWOR
if
(
(
info
==
NULL
)
||
(
info
->
dwMagic
!=
ICCVID_MAGIC
)
)
if
(
(
info
==
NULL
)
||
(
info
->
dwMagic
!=
ICCVID_MAGIC
)
)
return
ICERR_BADPARAM
;
return
ICERR_BADPARAM
;
if
(
info
->
cvinfo
==
NULL
)
{
ERR
(
"ICM_DECOMPRESSEX sent after ICM_DECOMPRESS_END
\n
"
);
return
ICERR_BADPARAM
;
}
/* FIXME: flags are ignored */
/* FIXME: flags are ignored */
...
...
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