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
e97fb503
Commit
e97fb503
authored
Nov 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Use an iface instead of a vtbl pointer in ImagingFactory.
parent
cbea2603
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
imgfactory.c
dlls/windowscodecs/imgfactory.c
+10
-5
No files found.
dlls/windowscodecs/imgfactory.c
View file @
e97fb503
...
...
@@ -36,14 +36,19 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wincodecs
);
typedef
struct
{
const
IWICImagingFactoryVtbl
*
lpIWICImagingFactoryVtbl
;
IWICImagingFactory
IWICImagingFactory_iface
;
LONG
ref
;
}
ImagingFactory
;
static
inline
ImagingFactory
*
impl_from_IWICImagingFactory
(
IWICImagingFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ImagingFactory
,
IWICImagingFactory_iface
);
}
static
HRESULT
WINAPI
ImagingFactory_QueryInterface
(
IWICImagingFactory
*
iface
,
REFIID
iid
,
void
**
ppv
)
{
ImagingFactory
*
This
=
(
ImagingFactory
*
)
iface
;
ImagingFactory
*
This
=
impl_from_IWICImagingFactory
(
iface
)
;
TRACE
(
"(%p,%s,%p)
\n
"
,
iface
,
debugstr_guid
(
iid
),
ppv
);
if
(
!
ppv
)
return
E_INVALIDARG
;
...
...
@@ -64,7 +69,7 @@ static HRESULT WINAPI ImagingFactory_QueryInterface(IWICImagingFactory *iface, R
static
ULONG
WINAPI
ImagingFactory_AddRef
(
IWICImagingFactory
*
iface
)
{
ImagingFactory
*
This
=
(
ImagingFactory
*
)
iface
;
ImagingFactory
*
This
=
impl_from_IWICImagingFactory
(
iface
)
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) refcount=%u
\n
"
,
iface
,
ref
);
...
...
@@ -74,7 +79,7 @@ static ULONG WINAPI ImagingFactory_AddRef(IWICImagingFactory *iface)
static
ULONG
WINAPI
ImagingFactory_Release
(
IWICImagingFactory
*
iface
)
{
ImagingFactory
*
This
=
(
ImagingFactory
*
)
iface
;
ImagingFactory
*
This
=
impl_from_IWICImagingFactory
(
iface
)
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) refcount=%u
\n
"
,
iface
,
ref
);
...
...
@@ -428,7 +433,7 @@ HRESULT ImagingFactory_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** pp
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ImagingFactory
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpIWICImagingFactory
Vtbl
=
&
ImagingFactory_Vtbl
;
This
->
IWICImagingFactory_iface
.
lp
Vtbl
=
&
ImagingFactory_Vtbl
;
This
->
ref
=
1
;
ret
=
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
iid
,
ppv
);
...
...
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