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
d2a6d95d
Commit
d2a6d95d
authored
Nov 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pstorec: Use an iface instead of a vtbl pointer in PStore_impl.
parent
e59ac81c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
pstorec.c
dlls/pstorec/pstorec.c
+10
-5
No files found.
dlls/pstorec/pstorec.c
View file @
d2a6d95d
...
@@ -33,10 +33,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(pstores);
...
@@ -33,10 +33,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(pstores);
typedef
struct
typedef
struct
{
{
const
IPStoreVtbl
*
lpVtbl
;
IPStore
IPStore_iface
;
LONG
ref
;
LONG
ref
;
}
PStore_impl
;
}
PStore_impl
;
static
inline
PStore_impl
*
impl_from_IPStore
(
IPStore
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
PStore_impl
,
IPStore_iface
);
}
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
{
{
TRACE
(
"%p %x %p
\n
"
,
hinst
,
fdwReason
,
fImpLoad
);
TRACE
(
"%p %x %p
\n
"
,
hinst
,
fdwReason
,
fImpLoad
);
...
@@ -62,7 +67,7 @@ static HRESULT WINAPI PStore_fnQueryInterface(
...
@@ -62,7 +67,7 @@ static HRESULT WINAPI PStore_fnQueryInterface(
REFIID
riid
,
REFIID
riid
,
LPVOID
*
ppvObj
)
LPVOID
*
ppvObj
)
{
{
PStore_impl
*
This
=
(
PStore_impl
*
)
iface
;
PStore_impl
*
This
=
impl_from_IPStore
(
iface
)
;
TRACE
(
"%p %s
\n
"
,
This
,
debugstr_guid
(
riid
));
TRACE
(
"%p %s
\n
"
,
This
,
debugstr_guid
(
riid
));
...
@@ -87,7 +92,7 @@ static HRESULT WINAPI PStore_fnQueryInterface(
...
@@ -87,7 +92,7 @@ static HRESULT WINAPI PStore_fnQueryInterface(
*/
*/
static
ULONG
WINAPI
PStore_fnAddRef
(
IPStore
*
iface
)
static
ULONG
WINAPI
PStore_fnAddRef
(
IPStore
*
iface
)
{
{
PStore_impl
*
This
=
(
PStore_impl
*
)
iface
;
PStore_impl
*
This
=
impl_from_IPStore
(
iface
)
;
TRACE
(
"%p %u
\n
"
,
This
,
This
->
ref
);
TRACE
(
"%p %u
\n
"
,
This
,
This
->
ref
);
...
@@ -99,7 +104,7 @@ static ULONG WINAPI PStore_fnAddRef(IPStore* iface)
...
@@ -99,7 +104,7 @@ static ULONG WINAPI PStore_fnAddRef(IPStore* iface)
*/
*/
static
ULONG
WINAPI
PStore_fnRelease
(
IPStore
*
iface
)
static
ULONG
WINAPI
PStore_fnRelease
(
IPStore
*
iface
)
{
{
PStore_impl
*
This
=
(
PStore_impl
*
)
iface
;
PStore_impl
*
This
=
impl_from_IPStore
(
iface
)
;
LONG
ref
;
LONG
ref
;
TRACE
(
"%p %u
\n
"
,
This
,
This
->
ref
);
TRACE
(
"%p %u
\n
"
,
This
,
This
->
ref
);
...
@@ -359,7 +364,7 @@ HRESULT WINAPI PStoreCreateInstance( IPStore** ppProvider,
...
@@ -359,7 +364,7 @@ HRESULT WINAPI PStoreCreateInstance( IPStore** ppProvider,
if
(
!
ips
)
if
(
!
ips
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
ips
->
lpVtbl
=
&
pstores_vtbl
;
ips
->
IPStore_iface
.
lpVtbl
=
&
pstores_vtbl
;
ips
->
ref
=
1
;
ips
->
ref
=
1
;
*
ppProvider
=
(
IPStore
*
)
ips
;
*
ppProvider
=
(
IPStore
*
)
ips
;
...
...
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