oleaut32: Don't clear BSTR size.

The size is used during cache lookup. Clearing it will break lookup
and prevent detection of double-freeing when warn+heap is enabled.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrew Eikum 2016-01-05 13:38:21 -06:00 committed by Alexandre Julliard
parent f394dca92a
commit 3bc2ec3371
1 changed files with 0 additions and 1 deletions

View File

@ -277,7 +277,6 @@ void WINAPI SysFreeString(BSTR str)
if(WARN_ON(heap)) {
unsigned n = bstr_alloc_size(bstr->size) / sizeof(DWORD) - 1;
bstr->size = ARENA_FREE_FILLER;
for(i=0; i<n; i++)
bstr->u.dwptr[i] = ARENA_FREE_FILLER;
}