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:
parent
f394dca92a
commit
3bc2ec3371
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue