Jacek Caban : oleaut32: Properly clear VT_BSTR record.

Alexandre Julliard julliard at winehq.org
Thu Apr 24 06:23:46 CDT 2008


Module: wine
Branch: master
Commit: 378c17019ec8ebc36b3809141575478d1d3f1d60
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=378c17019ec8ebc36b3809141575478d1d3f1d60

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Apr 23 17:09:25 2008 +0200

oleaut32: Properly clear VT_BSTR record.

---

 dlls/oleaut32/recinfo.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/oleaut32/recinfo.c b/dlls/oleaut32/recinfo.c
index 710cf1a..3576e1b 100644
--- a/dlls/oleaut32/recinfo.c
+++ b/dlls/oleaut32/recinfo.c
@@ -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:




More information about the wine-cvs mailing list