Skip to content
Snippets Groups Projects
Commit 378c1701 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

oleaut32: Properly clear VT_BSTR record.

parent 8dddd895
Branches
Tags
No related merge requests found
......@@ -211,8 +211,7 @@ static HRESULT WINAPI IRecordInfoImpl_RecordClear(IRecordInfo *iface, PVOID pvEx
var = ((PBYTE)pvExisting)+This->fields[i].offset;
switch(This->fields[i].vt) {
case VT_BSTR:
/* NOTE: Windows implementation reads DWORD (len) before string,
* but it seems to do nothing with this */
SysFreeString(*(BSTR*)var);
*(BSTR*)var = NULL;
break;
case VT_I2:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment