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
15e5f684
Commit
15e5f684
authored
Oct 08, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Use FAILED instead of !SUCCEEDED.
parent
68989570
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
imagelist.c
dlls/comctl32/imagelist.c
+7
-7
No files found.
dlls/comctl32/imagelist.c
View file @
15e5f684
...
...
@@ -1908,13 +1908,13 @@ static BOOL _read_bitmap(HDC hdcIml, LPSTREAM pstm)
int
result
=
FALSE
;
LPBYTE
bits
=
NULL
;
if
(
!
SUCCEED
ED
(
IStream_Read
(
pstm
,
&
bmfh
,
sizeof
(
bmfh
),
NULL
)))
if
(
FAIL
ED
(
IStream_Read
(
pstm
,
&
bmfh
,
sizeof
(
bmfh
),
NULL
)))
return
FALSE
;
if
(
bmfh
.
bfType
!=
((
'M'
<<
8
)
|
'B'
))
return
FALSE
;
if
(
!
SUCCEED
ED
(
IStream_Read
(
pstm
,
&
bmi
->
bmiHeader
,
sizeof
(
bmi
->
bmiHeader
),
NULL
)))
if
(
FAIL
ED
(
IStream_Read
(
pstm
,
&
bmi
->
bmiHeader
,
sizeof
(
bmi
->
bmiHeader
),
NULL
)))
return
FALSE
;
if
((
bmi
->
bmiHeader
.
biSize
!=
sizeof
(
bmi
->
bmiHeader
)))
...
...
@@ -1933,13 +1933,13 @@ static BOOL _read_bitmap(HDC hdcIml, LPSTREAM pstm)
bmi
->
bmiHeader
.
biSizeImage
=
DIB_GetDIBImageBytes
(
bmi
->
bmiHeader
.
biWidth
,
bmi
->
bmiHeader
.
biHeight
,
bitsperpixel
);
/* read the palette right after the end of the bitmapinfoheader */
if
(
palspace
&&
!
SUCCEED
ED
(
IStream_Read
(
pstm
,
bmi
->
bmiColors
,
palspace
,
NULL
)))
if
(
palspace
&&
FAIL
ED
(
IStream_Read
(
pstm
,
bmi
->
bmiColors
,
palspace
,
NULL
)))
goto
error
;
bits
=
Alloc
(
bmi
->
bmiHeader
.
biSizeImage
);
if
(
!
bits
)
goto
error
;
if
(
!
SUCCEED
ED
(
IStream_Read
(
pstm
,
bits
,
bmi
->
bmiHeader
.
biSizeImage
,
NULL
)))
if
(
FAIL
ED
(
IStream_Read
(
pstm
,
bits
,
bmi
->
bmiHeader
.
biSizeImage
,
NULL
)))
goto
error
;
if
(
!
StretchDIBits
(
hdcIml
,
0
,
0
,
bmi
->
bmiHeader
.
biWidth
,
bmi
->
bmiHeader
.
biHeight
,
...
...
@@ -1992,7 +1992,7 @@ HIMAGELIST WINAPI ImageList_Read (LPSTREAM pstm)
TRACE
(
"%p
\n
"
,
pstm
);
if
(
!
SUCCEED
ED
(
IStream_Read
(
pstm
,
&
ilHead
,
sizeof
(
ILHEAD
),
NULL
)))
if
(
FAIL
ED
(
IStream_Read
(
pstm
,
&
ilHead
,
sizeof
(
ILHEAD
),
NULL
)))
return
NULL
;
if
(
ilHead
.
usMagic
!=
((
'L'
<<
8
)
|
'I'
))
return
NULL
;
...
...
@@ -2740,7 +2740,7 @@ _write_bitmap(HBITMAP hBitmap, LPSTREAM pstm)
inf
->
bmiColors
[
1
].
rgbRed
=
inf
->
bmiColors
[
1
].
rgbGreen
=
inf
->
bmiColors
[
1
].
rgbBlue
=
0xff
;
}
if
(
!
SUCCEED
ED
(
IStream_Write
(
pstm
,
data
,
totalSize
,
NULL
)))
if
(
FAIL
ED
(
IStream_Write
(
pstm
,
data
,
totalSize
,
NULL
)))
goto
failed
;
result
=
TRUE
;
...
...
@@ -2796,7 +2796,7 @@ ImageList_Write (HIMAGELIST himl, LPSTREAM pstm)
TRACE
(
"cx %u, cy %u, flags 0x04%x, cCurImage %u, cMaxImage %u
\n
"
,
ilHead
.
cx
,
ilHead
.
cy
,
ilHead
.
flags
,
ilHead
.
cCurImage
,
ilHead
.
cMaxImage
);
if
(
!
SUCCEED
ED
(
IStream_Write
(
pstm
,
&
ilHead
,
sizeof
(
ILHEAD
),
NULL
)))
if
(
FAIL
ED
(
IStream_Write
(
pstm
,
&
ilHead
,
sizeof
(
ILHEAD
),
NULL
)))
return
FALSE
;
/* write the bitmap */
...
...
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