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
37d9b486
Commit
37d9b486
authored
Jan 13, 2003
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support a few trivial cases in PropVariantClear.
parent
d0019a60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
6 deletions
+39
-6
ole2.c
dlls/ole32/ole2.c
+3
-0
ole2stubs.c
dlls/ole32/ole2stubs.c
+36
-6
No files found.
dlls/ole32/ole2.c
View file @
37d9b486
...
...
@@ -541,6 +541,9 @@ HRESULT WINAPI DoDragDrop (
/*
* Setup the drag n drop tracking window.
*/
if
(
!
IsValidInterface
((
LPUNKNOWN
)
pDropSource
))
return
E_INVALIDARG
;
trackerInfo
.
dataObject
=
pDataObject
;
trackerInfo
.
dropSource
=
pDropSource
;
trackerInfo
.
dwOKEffect
=
dwOKEffect
;
...
...
dlls/ole32/ole2stubs.c
View file @
37d9b486
...
...
@@ -25,6 +25,7 @@
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "objidl.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
...
...
@@ -225,13 +226,42 @@ HRESULT WINAPI OleRegEnumFormatEtc (
/***********************************************************************
* PropVariantClear [OLE32.166]
*/
HRESULT
WINAPI
PropVariantClear
(
void
*
pvar
)
/* [in/out] FIXME: PROPVARIANT * */
HRESULT
WINAPI
PropVariantClear
(
PROPVARIANT
*
pvar
)
/* [in/out] FIXME: PROPVARIANT * */
{
FIXME
(
"(%p): stub:
\n
"
,
pvar
);
*
(
LPWORD
)
pvar
=
0
;
/* sets at least the vt field to VT_EMPTY */
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
pvar
);
if
(
!
pvar
)
return
S_OK
;
switch
(
pvar
->
vt
)
{
case
VT_BSTR
:
CoTaskMemFree
(
pvar
->
u
.
bstrVal
);
break
;
case
VT_STREAM
:
case
VT_STREAMED_OBJECT
:
case
VT_STORAGE
:
case
VT_STORED_OBJECT
:
IUnknown_Release
((
LPUNKNOWN
)
pvar
->
u
.
pStream
);
break
;
case
VT_CLSID
:
case
VT_CF
:
case
VT_LPSTR
:
case
VT_LPWSTR
:
case
VT_BLOB
:
case
VT_BLOB_OBJECT
:
FIXME
(
"Don't know what to do for variant type %d
\n
"
,
pvar
->
vt
);
default:
if
(
pvar
->
vt
&&
VT_VECTOR
)
{
FIXME
(
"Need to recursively destroy elements in vector
\n
"
);
/* SafeArrayDestroy(pvar->u.caub); */
}
}
ZeroMemory
(
pvar
,
sizeof
(
PROPVARIANT
));
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