oleaut32: Allocate bigger buffer in WMSFT_compile_names function.

This commit is contained in:
Piotr Caban 2013-08-28 10:42:15 +02:00 committed by Alexandre Julliard
parent 6ab3ba1373
commit 3f4b06edf1
1 changed files with 2 additions and 1 deletions

View File

@ -8905,7 +8905,8 @@ static HRESULT WMSFT_compile_names(ITypeLibImpl *This,
str->offset = size;
}
file->name_seg.data = data = heap_alloc(file->name_seg.len);
/* Allocate bigger buffer so we can temporarily NULL terminate the name */
file->name_seg.data = data = heap_alloc(file->name_seg.len+1);
last_offs = 0;
LIST_FOR_EACH_ENTRY(str, &This->name_list, TLBString, entry) {