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
0fc73914
Commit
0fc73914
authored
Jun 17, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs/tests: Pass the correct constant to IWICImagingFactory_CreateBitmapFromHBITMAP.
parent
1020a7b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bitmap.c
dlls/windowscodecs/tests/bitmap.c
+5
-5
No files found.
dlls/windowscodecs/tests/bitmap.c
View file @
0fc73914
...
...
@@ -651,15 +651,15 @@ static void test_CreateBitmapFromHBITMAP(void)
hbmp
=
create_dib
(
3
,
3
,
8
,
NULL
,
data_8bpp_rgb_dib
);
ok
(
hbmp
!=
0
,
"failed to create bitmap
\n
"
);
hr
=
IWICImagingFactory_CreateBitmapFromHBITMAP
(
factory
,
0
,
0
,
WICBitmap
CacheOnLoad
,
&
bitmap
);
hr
=
IWICImagingFactory_CreateBitmapFromHBITMAP
(
factory
,
0
,
0
,
WICBitmap
IgnoreAlpha
,
&
bitmap
);
todo_wine
ok
(
hr
==
WINCODEC_ERR_WIN32ERROR
||
hr
==
0x88980003
/*XP*/
,
"expected WINCODEC_ERR_WIN32ERROR, got %#x
\n
"
,
hr
);
hr
=
IWICImagingFactory_CreateBitmapFromHBITMAP
(
factory
,
hbmp
,
0
,
WICBitmap
CacheOnLoad
,
NULL
);
hr
=
IWICImagingFactory_CreateBitmapFromHBITMAP
(
factory
,
hbmp
,
0
,
WICBitmap
IgnoreAlpha
,
NULL
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"expected E_INVALIDARG, got %#x
\n
"
,
hr
);
hr
=
IWICImagingFactory_CreateBitmapFromHBITMAP
(
factory
,
hbmp
,
0
,
WICBitmap
CacheOnLoad
,
&
bitmap
);
hr
=
IWICImagingFactory_CreateBitmapFromHBITMAP
(
factory
,
hbmp
,
0
,
WICBitmap
IgnoreAlpha
,
&
bitmap
);
todo_wine
ok
(
hr
==
S_OK
,
"CreateBitmapFromHBITMAP error %#x
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
return
;
...
...
@@ -691,7 +691,7 @@ todo_wine
ok
(
hpal
!=
0
,
"CreatePalette failed
\n
"
);
hbmp
=
create_dib
(
3
,
3
,
8
,
pal
,
data_8bpp_pal_dib
);
hr
=
IWICImagingFactory_CreateBitmapFromHBITMAP
(
factory
,
hbmp
,
hpal
,
WICBitmap
CacheOnLoad
,
&
bitmap
);
hr
=
IWICImagingFactory_CreateBitmapFromHBITMAP
(
factory
,
hbmp
,
hpal
,
WICBitmap
IgnoreAlpha
,
&
bitmap
);
ok
(
hr
==
S_OK
,
"CreateBitmapFromHBITMAP error %#x
\n
"
,
hr
);
IWICBitmap_GetPixelFormat
(
bitmap
,
&
format
);
...
...
@@ -731,7 +731,7 @@ todo_wine
ok
(
hpal
!=
0
,
"CreatePalette failed
\n
"
);
hbmp
=
create_dib
(
3
,
3
,
8
,
pal
,
data_8bpp_pal_dib
);
hr
=
IWICImagingFactory_CreateBitmapFromHBITMAP
(
factory
,
hbmp
,
hpal
,
WICBitmap
CacheOnLoad
,
&
bitmap
);
hr
=
IWICImagingFactory_CreateBitmapFromHBITMAP
(
factory
,
hbmp
,
hpal
,
WICBitmap
IgnoreAlpha
,
&
bitmap
);
ok
(
hr
==
S_OK
,
"CreateBitmapFromHBITMAP error %#x
\n
"
,
hr
);
IWICBitmap_GetPixelFormat
(
bitmap
,
&
format
);
...
...
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