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
eb26db27
Commit
eb26db27
authored
Nov 23, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Reimplement QueryCapability of the BMP decoder.
parent
afd1ddbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
bmpdecode.c
dlls/windowscodecs/bmpdecode.c
+8
-10
No files found.
dlls/windowscodecs/bmpdecode.c
View file @
eb26db27
...
...
@@ -1010,22 +1010,20 @@ static ULONG WINAPI BmpDecoder_Release(IWICBitmapDecoder *iface)
return
ref
;
}
static
HRESULT
WINAPI
BmpDecoder_QueryCapability
(
IWICBitmapDecoder
*
iface
,
IStream
*
pIS
tream
,
DWORD
*
pdwC
apability
)
static
HRESULT
WINAPI
BmpDecoder_QueryCapability
(
IWICBitmapDecoder
*
iface
,
IStream
*
s
tream
,
DWORD
*
c
apability
)
{
HRESULT
hr
;
BmpDecoder
*
This
=
impl_from_IWICBitmapDecoder
(
iface
);
EnterCriticalSection
(
&
This
->
lock
);
hr
=
BmpDecoder_ReadHeaders
(
This
,
pIStream
);
LeaveCriticalSection
(
&
This
->
lock
);
if
(
FAILED
(
hr
))
return
hr
;
TRACE
(
"(%p,%p,%p)
\n
"
,
iface
,
stream
,
capability
);
if
(
This
->
read_data_func
==
BmpFrameDecode_ReadUnsupported
)
*
pdwCapability
=
0
;
else
*
pdwCapability
=
WICBitmapDecoderCapabilityCanDecodeAllImages
;
if
(
!
stream
||
!
capability
)
return
E_INVALIDARG
;
hr
=
IWICBitmapDecoder_Initialize
(
iface
,
stream
,
WICDecodeMetadataCacheOnDemand
);
if
(
hr
!=
S_OK
)
return
hr
;
*
capability
=
This
->
read_data_func
==
BmpFrameDecode_ReadUnsupported
?
0
:
WICBitmapDecoderCapabilityCanDecodeAllImages
;
return
S_OK
;
}
...
...
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