Commit 3f4b06ed authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

oleaut32: Allocate bigger buffer in WMSFT_compile_names function.

parent 6ab3ba13
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment