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
3abd27c6
Commit
3abd27c6
authored
May 05, 2006
by
Huw Davies
Committed by
Alexandre Julliard
May 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix VARIANT_UserFree.
parent
2898b5d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
17 deletions
+20
-17
usrmarshal.c
dlls/oleaut32/usrmarshal.c
+20
-17
No files found.
dlls/oleaut32/usrmarshal.c
View file @
3abd27c6
...
...
@@ -646,23 +646,26 @@ void WINAPI VARIANT_UserFree(unsigned long *pFlags, VARIANT *pvar)
VariantClear
(
pvar
);
if
(
!
ref
)
return
;
switch
(
vt
)
{
case
VT_BSTR
|
VT_BYREF
:
BSTR_UserFree
(
pFlags
,
ref
);
break
;
case
VT_VARIANT
|
VT_BYREF
:
VARIANT_UserFree
(
pFlags
,
ref
);
break
;
case
VT_RECORD
|
VT_BYREF
:
FIXME
(
"handle BRECORD by ref
\n
"
);
break
;
case
VT_UNKNOWN
:
case
VT_DISPATCH
:
IUnknown_Release
(
V_UNKNOWN
(
pvar
));
break
;
default:
FIXME
(
"handle unknown complex type
\n
"
);
break
;
if
(
vt
&
VT_ARRAY
)
LPSAFEARRAY_UserFree
(
pFlags
,
V_ARRAYREF
(
pvar
));
else
{
switch
(
vt
)
{
case
VT_BSTR
|
VT_BYREF
:
BSTR_UserFree
(
pFlags
,
V_BSTRREF
(
pvar
));
break
;
case
VT_VARIANT
|
VT_BYREF
:
VARIANT_UserFree
(
pFlags
,
V_VARIANTREF
(
pvar
));
break
;
case
VT_RECORD
|
VT_BYREF
:
FIXME
(
"handle BRECORD by ref
\n
"
);
break
;
case
VT_UNKNOWN
|
VT_BYREF
:
case
VT_DISPATCH
|
VT_BYREF
:
IUnknown_Release
(
*
V_UNKNOWNREF
(
pvar
));
break
;
}
}
CoTaskMemFree
(
ref
);
...
...
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