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
151b3516
Commit
151b3516
authored
Dec 07, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use an iface instead of a vtbl pointer in IDefClFImpl.
parent
b6f869c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
shellole.c
dlls/shell32/shellole.c
+12
-7
No files found.
dlls/shell32/shellole.c
View file @
151b3516
...
...
@@ -358,7 +358,7 @@ HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
typedef
struct
{
const
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
LONG
ref
;
CLSID
*
rclsid
;
LPFNCREATEINSTANCE
lpfnCI
;
...
...
@@ -366,6 +366,11 @@ typedef struct
LONG
*
pcRefDll
;
/* pointer to refcounter in external dll (ugrrr...) */
}
IDefClFImpl
;
static
inline
IDefClFImpl
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDefClFImpl
,
IClassFactory_iface
);
}
static
const
IClassFactoryVtbl
dclfvt
;
/**************************************************************************
...
...
@@ -378,7 +383,7 @@ static IClassFactory * IDefClF_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pc
lpclf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IDefClFImpl
));
lpclf
->
ref
=
1
;
lpclf
->
lpVtbl
=
&
dclfvt
;
lpclf
->
IClassFactory_iface
.
lpVtbl
=
&
dclfvt
;
lpclf
->
lpfnCI
=
lpfnCI
;
lpclf
->
pcRefDll
=
pcRefDll
;
...
...
@@ -394,7 +399,7 @@ static IClassFactory * IDefClF_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pc
static
HRESULT
WINAPI
IDefClF_fnQueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
IDefClFImpl
*
This
=
(
IDefClFImpl
*
)
iface
;
IDefClFImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
shdebugstr_guid
(
riid
));
...
...
@@ -414,7 +419,7 @@ static HRESULT WINAPI IDefClF_fnQueryInterface(
*/
static
ULONG
WINAPI
IDefClF_fnAddRef
(
LPCLASSFACTORY
iface
)
{
IDefClFImpl
*
This
=
(
IDefClFImpl
*
)
iface
;
IDefClFImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(count=%u)
\n
"
,
This
,
refCount
-
1
);
...
...
@@ -426,7 +431,7 @@ static ULONG WINAPI IDefClF_fnAddRef(LPCLASSFACTORY iface)
*/
static
ULONG
WINAPI
IDefClF_fnRelease
(
LPCLASSFACTORY
iface
)
{
IDefClFImpl
*
This
=
(
IDefClFImpl
*
)
iface
;
IDefClFImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(count=%u)
\n
"
,
This
,
refCount
+
1
);
...
...
@@ -447,7 +452,7 @@ static ULONG WINAPI IDefClF_fnRelease(LPCLASSFACTORY iface)
static
HRESULT
WINAPI
IDefClF_fnCreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppvObject
)
{
IDefClFImpl
*
This
=
(
IDefClFImpl
*
)
iface
;
IDefClFImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"%p->(%p,%s,%p)
\n
"
,
This
,
pUnkOuter
,
shdebugstr_guid
(
riid
),
ppvObject
);
...
...
@@ -468,7 +473,7 @@ static HRESULT WINAPI IDefClF_fnCreateInstance(
*/
static
HRESULT
WINAPI
IDefClF_fnLockServer
(
LPCLASSFACTORY
iface
,
BOOL
fLock
)
{
IDefClFImpl
*
This
=
(
IDefClFImpl
*
)
iface
;
IDefClFImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"%p->(0x%x), not implemented
\n
"
,
This
,
fLock
);
return
E_NOTIMPL
;
}
...
...
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