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 ...@@ -211,8 +211,7 @@ static HRESULT WINAPI IRecordInfoImpl_RecordClear(IRecordInfo *iface, PVOID pvEx
var = ((PBYTE)pvExisting)+This->fields[i].offset; var = ((PBYTE)pvExisting)+This->fields[i].offset;
switch(This->fields[i].vt) { switch(This->fields[i].vt) {
case VT_BSTR: case VT_BSTR:
/* NOTE: Windows implementation reads DWORD (len) before string, SysFreeString(*(BSTR*)var);
* but it seems to do nothing with this */
*(BSTR*)var = NULL; *(BSTR*)var = NULL;
break; break;
case VT_I2: 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