Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
78cfd137
Commit
78cfd137
authored
Sep 10, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Use FAILED instead of !SUCCEEDED.
parent
f3fc0050
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
info.c
dlls/windowscodecs/info.c
+1
-1
bmpformat.c
dlls/windowscodecs/tests/bmpformat.c
+6
-6
palette.c
dlls/windowscodecs/tests/palette.c
+1
-1
No files found.
dlls/windowscodecs/info.c
View file @
78cfd137
...
...
@@ -952,7 +952,7 @@ HRESULT CreateComponentEnumerator(DWORD componentTypes, DWORD options, IEnumUnkn
list_add_tail
(
&
This
->
objects
,
&
item
->
entry
);
}
if
(
!
SUCCEED
ED
(
hr
))
if
(
FAIL
ED
(
hr
))
{
HeapFree
(
GetProcessHeap
(),
0
,
item
);
hr
=
S_OK
;
...
...
dlls/windowscodecs/tests/bmpformat.c
View file @
78cfd137
...
...
@@ -70,7 +70,7 @@ static void test_decode_24bpp(void)
hr
=
CoCreateInstance
(
&
CLSID_WICBmpDecoder
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IWICBitmapDecoder
,
(
void
**
)
&
decoder
);
ok
(
SUCCEEDED
(
hr
),
"CoCreateInstance failed, hr=%x
\n
"
,
hr
);
if
(
!
SUCCEED
ED
(
hr
))
return
;
if
(
FAIL
ED
(
hr
))
return
;
hbmpdata
=
GlobalAlloc
(
GMEM_MOVEABLE
,
sizeof
(
testbmp_24bpp
));
ok
(
hbmpdata
!=
0
,
"GlobalAlloc failed
\n
"
);
...
...
@@ -277,7 +277,7 @@ static void test_decode_1bpp(void)
hr
=
CoCreateInstance
(
&
CLSID_WICBmpDecoder
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IWICBitmapDecoder
,
(
void
**
)
&
decoder
);
ok
(
SUCCEEDED
(
hr
),
"CoCreateInstance failed, hr=%x
\n
"
,
hr
);
if
(
!
SUCCEED
ED
(
hr
))
return
;
if
(
FAIL
ED
(
hr
))
return
;
hbmpdata
=
GlobalAlloc
(
GMEM_MOVEABLE
,
sizeof
(
testbmp_1bpp
));
ok
(
hbmpdata
!=
0
,
"GlobalAlloc failed
\n
"
);
...
...
@@ -435,7 +435,7 @@ static void test_decode_4bpp(void)
hr
=
CoCreateInstance
(
&
CLSID_WICBmpDecoder
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IWICBitmapDecoder
,
(
void
**
)
&
decoder
);
ok
(
SUCCEEDED
(
hr
),
"CoCreateInstance failed, hr=%x
\n
"
,
hr
);
if
(
!
SUCCEED
ED
(
hr
))
return
;
if
(
FAIL
ED
(
hr
))
return
;
hbmpdata
=
GlobalAlloc
(
GMEM_MOVEABLE
,
sizeof
(
testbmp_4bpp
));
ok
(
hbmpdata
!=
0
,
"GlobalAlloc failed
\n
"
);
...
...
@@ -614,7 +614,7 @@ static void test_decode_rle8(void)
hr
=
CoCreateInstance
(
&
CLSID_WICBmpDecoder
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IWICBitmapDecoder
,
(
void
**
)
&
decoder
);
ok
(
SUCCEEDED
(
hr
),
"CoCreateInstance failed, hr=%x
\n
"
,
hr
);
if
(
!
SUCCEED
ED
(
hr
))
return
;
if
(
FAIL
ED
(
hr
))
return
;
hbmpdata
=
GlobalAlloc
(
GMEM_MOVEABLE
,
sizeof
(
testbmp_rle8
));
ok
(
hbmpdata
!=
0
,
"GlobalAlloc failed
\n
"
);
...
...
@@ -780,7 +780,7 @@ static void test_decode_rle4(void)
hr
=
CoCreateInstance
(
&
CLSID_WICBmpDecoder
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IWICBitmapDecoder
,
(
void
**
)
&
decoder
);
ok
(
SUCCEEDED
(
hr
),
"CoCreateInstance failed, hr=%x
\n
"
,
hr
);
if
(
!
SUCCEED
ED
(
hr
))
return
;
if
(
FAIL
ED
(
hr
))
return
;
hbmpdata
=
GlobalAlloc
(
GMEM_MOVEABLE
,
sizeof
(
testbmp_rle4
));
ok
(
hbmpdata
!=
0
,
"GlobalAlloc failed
\n
"
);
...
...
@@ -999,7 +999,7 @@ static void test_createfromstream(void)
hr
=
CoCreateInstance
(
&
CLSID_WICImagingFactory
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IWICImagingFactory
,
(
void
**
)
&
factory
);
ok
(
SUCCEEDED
(
hr
),
"CoCreateInstance failed, hr=%x
\n
"
,
hr
);
if
(
!
SUCCEED
ED
(
hr
))
return
;
if
(
FAIL
ED
(
hr
))
return
;
hbmpdata
=
GlobalAlloc
(
GMEM_MOVEABLE
,
sizeof
(
testbmp_1bpp
));
ok
(
hbmpdata
!=
0
,
"GlobalAlloc failed
\n
"
);
...
...
dlls/windowscodecs/tests/palette.c
View file @
78cfd137
...
...
@@ -39,7 +39,7 @@ static void test_custom_palette(void)
hr
=
CoCreateInstance
(
&
CLSID_WICImagingFactory
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IWICImagingFactory
,
(
void
**
)
&
factory
);
ok
(
SUCCEEDED
(
hr
),
"CoCreateInstance failed, hr=%x
\n
"
,
hr
);
if
(
!
SUCCEED
ED
(
hr
))
return
;
if
(
FAIL
ED
(
hr
))
return
;
hr
=
IWICImagingFactory_CreatePalette
(
factory
,
&
palette
);
ok
(
SUCCEEDED
(
hr
),
"CreatePalette failed, hr=%x
\n
"
,
hr
);
...
...
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