oleaut32: Properly clear VT_BSTR record.

This commit is contained in:
Jacek Caban 2008-04-23 17:09:25 +02:00 committed by Alexandre Julliard
parent 8dddd89500
commit 378c17019e
1 changed files with 1 additions and 2 deletions

View File

@ -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: