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
a6bfa0dd
Commit
a6bfa0dd
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 IFileSystemBindDataImpl.
parent
151b3516
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
shlfsbind.c
dlls/shell32/shlfsbind.c
+16
-11
No files found.
dlls/shell32/shlfsbind.c
View file @
a6bfa0dd
...
...
@@ -41,11 +41,16 @@ WINE_DEFAULT_DEBUG_CHANNEL(pidl);
*/
typedef
struct
{
const
IFileSystemBindDataVtbl
*
lpVtbl
;
LONG
ref
;
IFileSystemBindData
IFileSystemBindData_iface
;
LONG
ref
;
WIN32_FIND_DATAW
findFile
;
}
IFileSystemBindDataImpl
;
static
inline
IFileSystemBindDataImpl
*
impl_from_IFileSystemBindData
(
IFileSystemBindData
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IFileSystemBindDataImpl
,
IFileSystemBindData_iface
);
}
static
HRESULT
WINAPI
IFileSystemBindData_fnQueryInterface
(
IFileSystemBindData
*
,
REFIID
,
LPVOID
*
);
static
ULONG
WINAPI
IFileSystemBindData_fnAddRef
(
IFileSystemBindData
*
);
static
ULONG
WINAPI
IFileSystemBindData_fnRelease
(
IFileSystemBindData
*
);
...
...
@@ -80,9 +85,9 @@ HRESULT WINAPI IFileSystemBindData_Constructor(const WIN32_FIND_DATAW *pfd, LPBC
if
(
!
sb
)
return
ret
;
sb
->
lpVtbl
=
&
sbvt
;
sb
->
IFileSystemBindData_iface
.
lpVtbl
=
&
sbvt
;
sb
->
ref
=
1
;
IFileSystemBindData_fnSetFindData
(
(
IFileSystemBindData
*
)
sb
,
pfd
);
IFileSystemBindData_fnSetFindData
(
&
sb
->
IFileSystemBindData_iface
,
pfd
);
ret
=
CreateBindCtx
(
0
,
ppV
);
if
(
SUCCEEDED
(
ret
))
...
...
@@ -96,7 +101,7 @@ HRESULT WINAPI IFileSystemBindData_Constructor(const WIN32_FIND_DATAW *pfd, LPBC
IBindCtx_SetBindOptions
(
*
ppV
,
&
bindOpts
);
IBindCtx_RegisterObjectParam
(
*
ppV
,
(
LPOLESTR
)
wFileSystemBindData
,
(
LPUNKNOWN
)
sb
);
IFileSystemBindData_Release
(
(
IFileSystemBindData
*
)
sb
);
IFileSystemBindData_Release
(
&
sb
->
IFileSystemBindData_iface
);
}
else
HeapFree
(
GetProcessHeap
(),
0
,
sb
);
...
...
@@ -106,7 +111,7 @@ HRESULT WINAPI IFileSystemBindData_Constructor(const WIN32_FIND_DATAW *pfd, LPBC
static
HRESULT
WINAPI
IFileSystemBindData_fnQueryInterface
(
IFileSystemBindData
*
iface
,
REFIID
riid
,
LPVOID
*
ppV
)
{
IFileSystemBindDataImpl
*
This
=
(
IFileSystemBindDataImpl
*
)
iface
;
IFileSystemBindDataImpl
*
This
=
impl_from_IFileSystemBindData
(
iface
)
;
TRACE
(
"(%p)->(
\n\t
IID:
\t
%s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppV
);
*
ppV
=
NULL
;
...
...
@@ -128,7 +133,7 @@ static HRESULT WINAPI IFileSystemBindData_fnQueryInterface(
static
ULONG
WINAPI
IFileSystemBindData_fnAddRef
(
IFileSystemBindData
*
iface
)
{
IFileSystemBindDataImpl
*
This
=
(
IFileSystemBindDataImpl
*
)
iface
;
IFileSystemBindDataImpl
*
This
=
impl_from_IFileSystemBindData
(
iface
)
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(count=%i)
\n
"
,
This
,
refCount
-
1
);
...
...
@@ -138,9 +143,9 @@ static ULONG WINAPI IFileSystemBindData_fnAddRef(IFileSystemBindData *iface)
static
ULONG
WINAPI
IFileSystemBindData_fnRelease
(
IFileSystemBindData
*
iface
)
{
IFileSystemBindDataImpl
*
This
=
(
IFileSystemBindDataImpl
*
)
iface
;
IFileSystemBindDataImpl
*
This
=
impl_from_IFileSystemBindData
(
iface
)
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(count=%i)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
...
...
@@ -154,7 +159,7 @@ static ULONG WINAPI IFileSystemBindData_fnRelease(IFileSystemBindData *iface)
static
HRESULT
WINAPI
IFileSystemBindData_fnGetFindData
(
IFileSystemBindData
*
iface
,
WIN32_FIND_DATAW
*
pfd
)
{
IFileSystemBindDataImpl
*
This
=
(
IFileSystemBindDataImpl
*
)
iface
;
IFileSystemBindDataImpl
*
This
=
impl_from_IFileSystemBindData
(
iface
)
;
TRACE
(
"(%p), %p
\n
"
,
This
,
pfd
);
if
(
!
pfd
)
...
...
@@ -167,7 +172,7 @@ static HRESULT WINAPI IFileSystemBindData_fnGetFindData(
static
HRESULT
WINAPI
IFileSystemBindData_fnSetFindData
(
IFileSystemBindData
*
iface
,
const
WIN32_FIND_DATAW
*
pfd
)
{
IFileSystemBindDataImpl
*
This
=
(
IFileSystemBindDataImpl
*
)
iface
;
IFileSystemBindDataImpl
*
This
=
impl_from_IFileSystemBindData
(
iface
)
;
TRACE
(
"(%p), %p
\n
"
,
This
,
pfd
);
if
(
pfd
)
...
...
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