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
40e364f0
Commit
40e364f0
authored
Jun 26, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jun 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Distinguish interface pointer and implementation pointer.
parent
ed48ffdf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
info.c
dlls/windowscodecs/info.c
+10
-10
stream.c
dlls/windowscodecs/stream.c
+1
-1
No files found.
dlls/windowscodecs/info.c
View file @
40e364f0
...
...
@@ -230,7 +230,7 @@ static HRESULT WINAPI BitmapDecoderInfo_QueryInterface(IWICBitmapDecoderInfo *if
IsEqualIID
(
&
IID_IWICBitmapCodecInfo
,
iid
)
||
IsEqualIID
(
&
IID_IWICBitmapDecoderInfo
,
iid
))
{
*
ppv
=
This
;
*
ppv
=
&
This
->
IWICBitmapDecoderInfo_iface
;
}
else
{
...
...
@@ -671,7 +671,7 @@ static HRESULT BitmapDecoderInfo_Constructor(HKEY classkey, REFCLSID clsid, IWIC
This
->
classkey
=
classkey
;
memcpy
(
&
This
->
clsid
,
clsid
,
sizeof
(
CLSID
));
*
ppIInfo
=
(
IWICComponentInfo
*
)
This
;
*
ppIInfo
=
(
IWICComponentInfo
*
)
&
This
->
IWICBitmapDecoderInfo_iface
;
return
S_OK
;
}
...
...
@@ -700,7 +700,7 @@ static HRESULT WINAPI BitmapEncoderInfo_QueryInterface(IWICBitmapEncoderInfo *if
IsEqualIID
(
&
IID_IWICBitmapCodecInfo
,
iid
)
||
IsEqualIID
(
&
IID_IWICBitmapEncoderInfo
,
iid
))
{
*
ppv
=
This
;
*
ppv
=
&
This
->
IWICBitmapEncoderInfo_iface
;
}
else
{
...
...
@@ -962,7 +962,7 @@ static HRESULT BitmapEncoderInfo_Constructor(HKEY classkey, REFCLSID clsid, IWIC
This
->
classkey
=
classkey
;
memcpy
(
&
This
->
clsid
,
clsid
,
sizeof
(
CLSID
));
*
ppIInfo
=
(
IWICComponentInfo
*
)
This
;
*
ppIInfo
=
(
IWICComponentInfo
*
)
&
This
->
IWICBitmapEncoderInfo_iface
;
return
S_OK
;
}
...
...
@@ -990,7 +990,7 @@ static HRESULT WINAPI FormatConverterInfo_QueryInterface(IWICFormatConverterInfo
IsEqualIID
(
&
IID_IWICComponentInfo
,
iid
)
||
IsEqualIID
(
&
IID_IWICFormatConverterInfo
,
iid
))
{
*
ppv
=
This
;
*
ppv
=
&
This
->
IWICFormatConverterInfo_iface
;
}
else
{
...
...
@@ -1179,7 +1179,7 @@ static HRESULT FormatConverterInfo_Constructor(HKEY classkey, REFCLSID clsid, IW
This
->
classkey
=
classkey
;
memcpy
(
&
This
->
clsid
,
clsid
,
sizeof
(
CLSID
));
*
ppIInfo
=
(
IWICComponentInfo
*
)
This
;
*
ppIInfo
=
(
IWICComponentInfo
*
)
&
This
->
IWICFormatConverterInfo_iface
;
return
S_OK
;
}
...
...
@@ -1208,7 +1208,7 @@ static HRESULT WINAPI PixelFormatInfo_QueryInterface(IWICPixelFormatInfo2 *iface
IsEqualIID
(
&
IID_IWICPixelFormatInfo
,
iid
)
||
IsEqualIID
(
&
IID_IWICPixelFormatInfo2
,
iid
))
{
*
ppv
=
This
;
*
ppv
=
&
This
->
IWICPixelFormatInfo2_iface
;
}
else
{
...
...
@@ -1473,7 +1473,7 @@ static HRESULT PixelFormatInfo_Constructor(HKEY classkey, REFCLSID clsid, IWICCo
This
->
classkey
=
classkey
;
memcpy
(
&
This
->
clsid
,
clsid
,
sizeof
(
CLSID
));
*
ppIInfo
=
(
IWICComponentInfo
*
)
This
;
*
ppIInfo
=
(
IWICComponentInfo
*
)
&
This
->
IWICPixelFormatInfo2_iface
;
return
S_OK
;
}
...
...
@@ -1504,7 +1504,7 @@ static HRESULT WINAPI MetadataReaderInfo_QueryInterface(IWICMetadataReaderInfo *
IsEqualIID
(
&
IID_IWICMetadataHandlerInfo
,
riid
)
||
IsEqualIID
(
&
IID_IWICMetadataReaderInfo
,
riid
))
{
*
ppv
=
This
;
*
ppv
=
&
This
->
IWICMetadataReaderInfo_iface
;
}
else
{
...
...
@@ -1912,7 +1912,7 @@ static HRESULT MetadataReaderInfo_Constructor(HKEY classkey, REFCLSID clsid, IWI
This
->
classkey
=
classkey
;
This
->
clsid
=
*
clsid
;
*
info
=
(
IWICComponentInfo
*
)
This
;
*
info
=
(
IWICComponentInfo
*
)
&
This
->
IWICMetadataReaderInfo_iface
;
return
S_OK
;
}
...
...
dlls/windowscodecs/stream.c
View file @
40e364f0
...
...
@@ -757,7 +757,7 @@ static HRESULT WINAPI IWICStreamImpl_QueryInterface(IWICStream *iface,
if
(
IsEqualIID
(
&
IID_IUnknown
,
iid
)
||
IsEqualIID
(
&
IID_IStream
,
iid
)
||
IsEqualIID
(
&
IID_ISequentialStream
,
iid
)
||
IsEqualIID
(
&
IID_IWICStream
,
iid
))
{
*
ppv
=
This
;
*
ppv
=
&
This
->
IWICStream_iface
;
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
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