Commit 378c1701 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

oleaut32: Properly clear VT_BSTR record.

parent 8dddd895
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment