Commit db33e8fd authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Fix off-by-one error in FileMonikerImpl_DecomposePath.

strgtable needs to be an array of the same size as str, including the nul-terminator.
parent db077e11
......@@ -1048,7 +1048,7 @@ int FileMonikerImpl_DecomposePath(LPCOLESTR str, LPOLESTR** stringTable)
TRACE("%s, %p\n", debugstr_w(str), *stringTable);
strgtable = CoTaskMemAlloc(len*sizeof(*strgtable));
strgtable = CoTaskMemAlloc((len + 1)*sizeof(*strgtable));
if (strgtable==NULL)
return E_OUTOFMEMORY;
......
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