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
bdb52414
Commit
bdb52414
authored
May 31, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: COM cleanup for the IDropTargetHelper iface.
parent
d0067a5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
dragdrophelper.c
dlls/shell32/dragdrophelper.c
+16
-14
No files found.
dlls/shell32/dragdrophelper.c
View file @
bdb52414
...
...
@@ -48,14 +48,16 @@ WINE_DEFAULT_DEBUG_CHANNEL (shell);
*/
typedef
struct
{
const
IDropTargetHelperVtbl
*
lpVtbl
;
IDropTargetHelper
IDropTargetHelper_iface
;
LONG
ref
;
}
IDropTargetHelperImpl
;
static
const
IDropTargetHelperVtbl
vt_IDropTargetHelper
;
#define _IUnknown_(This) ((IUnknown*)&(This)->lpVtbl)
#define _IDropTargetHelper_(This) (&(This)->lpVtbl)
static
inline
IDropTargetHelperImpl
*
impl_from_IDropTargetHelper
(
IDropTargetHelper
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDropTargetHelperImpl
,
IDropTargetHelper_iface
);
}
/**************************************************************************
* IDropTargetHelper_Constructor
...
...
@@ -75,10 +77,10 @@ HRESULT WINAPI IDropTargetHelper_Constructor (IUnknown * pUnkOuter, REFIID riid,
if
(
!
dth
)
return
E_OUTOFMEMORY
;
dth
->
ref
=
0
;
dth
->
lpVtbl
=
&
vt_IDropTargetHelper
;
dth
->
IDropTargetHelper_iface
.
lpVtbl
=
&
vt_IDropTargetHelper
;
if
(
FAILED
(
I
Unknown_QueryInterface
(
_IUnknown_
(
dth
)
,
riid
,
ppv
)))
{
IUnknown_Release
(
_IUnknown_
(
dth
)
);
if
(
FAILED
(
I
DropTargetHelper_QueryInterface
(
&
dth
->
IDropTargetHelper_iface
,
riid
,
ppv
)))
{
IDropTargetHelper_Release
(
&
dth
->
IDropTargetHelper_iface
);
return
E_NOINTERFACE
;
}
...
...
@@ -91,7 +93,7 @@ HRESULT WINAPI IDropTargetHelper_Constructor (IUnknown * pUnkOuter, REFIID riid,
*/
static
HRESULT
WINAPI
IDropTargetHelper_fnQueryInterface
(
IDropTargetHelper
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
IDropTargetHelperImpl
*
This
=
(
IDropTargetHelperImpl
*
)
iface
;
IDropTargetHelperImpl
*
This
=
impl_from_IDropTargetHelper
(
iface
)
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
shdebugstr_guid
(
riid
),
ppvObj
);
...
...
@@ -112,7 +114,7 @@ static HRESULT WINAPI IDropTargetHelper_fnQueryInterface (IDropTargetHelper * if
static
ULONG
WINAPI
IDropTargetHelper_fnAddRef
(
IDropTargetHelper
*
iface
)
{
IDropTargetHelperImpl
*
This
=
(
IDropTargetHelperImpl
*
)
iface
;
IDropTargetHelperImpl
*
This
=
impl_from_IDropTargetHelper
(
iface
)
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(count=%u)
\n
"
,
This
,
refCount
-
1
);
...
...
@@ -122,7 +124,7 @@ static ULONG WINAPI IDropTargetHelper_fnAddRef (IDropTargetHelper * iface)
static
ULONG
WINAPI
IDropTargetHelper_fnRelease
(
IDropTargetHelper
*
iface
)
{
IDropTargetHelperImpl
*
This
=
(
IDropTargetHelperImpl
*
)
iface
;
IDropTargetHelperImpl
*
This
=
impl_from_IDropTargetHelper
(
iface
)
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(count=%u)
\n
"
,
This
,
refCount
+
1
);
...
...
@@ -142,35 +144,35 @@ static HRESULT WINAPI IDropTargetHelper_fnDragEnter (
POINT
*
ppt
,
DWORD
dwEffect
)
{
IDropTargetHelperImpl
*
This
=
(
IDropTargetHelperImpl
*
)
iface
;
IDropTargetHelperImpl
*
This
=
impl_from_IDropTargetHelper
(
iface
)
;
FIXME
(
"(%p)->(%p %p %p 0x%08x)
\n
"
,
This
,
hwndTarget
,
pDataObject
,
ppt
,
dwEffect
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDropTargetHelper_fnDragLeave
(
IDropTargetHelper
*
iface
)
{
IDropTargetHelperImpl
*
This
=
(
IDropTargetHelperImpl
*
)
iface
;
IDropTargetHelperImpl
*
This
=
impl_from_IDropTargetHelper
(
iface
)
;
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDropTargetHelper_fnDragOver
(
IDropTargetHelper
*
iface
,
POINT
*
ppt
,
DWORD
dwEffect
)
{
IDropTargetHelperImpl
*
This
=
(
IDropTargetHelperImpl
*
)
iface
;
IDropTargetHelperImpl
*
This
=
impl_from_IDropTargetHelper
(
iface
)
;
FIXME
(
"(%p)->(%p 0x%08x)
\n
"
,
This
,
ppt
,
dwEffect
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDropTargetHelper_fnDrop
(
IDropTargetHelper
*
iface
,
IDataObject
*
pDataObject
,
POINT
*
ppt
,
DWORD
dwEffect
)
{
IDropTargetHelperImpl
*
This
=
(
IDropTargetHelperImpl
*
)
iface
;
IDropTargetHelperImpl
*
This
=
impl_from_IDropTargetHelper
(
iface
)
;
FIXME
(
"(%p)->(%p %p 0x%08x)
\n
"
,
This
,
pDataObject
,
ppt
,
dwEffect
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDropTargetHelper_fnShow
(
IDropTargetHelper
*
iface
,
BOOL
fShow
)
{
IDropTargetHelperImpl
*
This
=
(
IDropTargetHelperImpl
*
)
iface
;
IDropTargetHelperImpl
*
This
=
impl_from_IDropTargetHelper
(
iface
)
;
FIXME
(
"(%p)->(%u)
\n
"
,
This
,
fShow
);
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