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
9093312b
Commit
9093312b
authored
Nov 30, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Use an iface instead of an vtbl pointer in threadref.
parent
abb850c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
thread.c
dlls/shlwapi/thread.c
+11
-6
No files found.
dlls/shlwapi/thread.c
View file @
9093312b
...
...
@@ -122,13 +122,18 @@ typedef struct tagSHLWAPI_THREAD_INFO
typedef
struct
{
const
IUnknownVtbl
*
lpVtbl
;
IUnknown
IUnknown_iface
;
LONG
*
ref
;
}
threadref
;
static
inline
threadref
*
impl_from_IUnknown
(
IUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
threadref
,
IUnknown_iface
);
}
static
HRESULT
WINAPI
threadref_QueryInterface
(
IUnknown
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
threadref
*
This
=
(
threadref
*
)
iface
;
threadref
*
This
=
impl_from_IUnknown
(
iface
)
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObj
);
...
...
@@ -149,7 +154,7 @@ static HRESULT WINAPI threadref_QueryInterface(IUnknown *iface, REFIID riid, LPV
static
ULONG
WINAPI
threadref_AddRef
(
IUnknown
*
iface
)
{
threadref
*
This
=
(
threadref
*
)
iface
;
threadref
*
This
=
impl_from_IUnknown
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
This
);
return
InterlockedIncrement
(
This
->
ref
);
...
...
@@ -158,7 +163,7 @@ static ULONG WINAPI threadref_AddRef(IUnknown *iface)
static
ULONG
WINAPI
threadref_Release
(
IUnknown
*
iface
)
{
LONG
refcount
;
threadref
*
This
=
(
threadref
*
)
iface
;
threadref
*
This
=
impl_from_IUnknown
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -199,11 +204,11 @@ HRESULT WINAPI SHCreateThreadRef(LONG *lprefcount, IUnknown **lppUnknown)
return
E_INVALIDARG
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
threadref
));
This
->
lpVtbl
=
&
threadref_vt
;
This
->
IUnknown_iface
.
lpVtbl
=
&
threadref_vt
;
This
->
ref
=
lprefcount
;
*
lprefcount
=
1
;
*
lppUnknown
=
(
IUnknown
*
)
This
;
*
lppUnknown
=
&
This
->
IUnknown_iface
;
TRACE
(
"=> returning S_OK with %p
\n
"
,
This
);
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