mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
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.
This commit is contained in:
parent
db077e11ad
commit
db33e8fdd9
@ -1048,7 +1048,7 @@ int FileMonikerImpl_DecomposePath(LPCOLESTR str, LPOLESTR** stringTable)
|
|||||||
|
|
||||||
TRACE("%s, %p\n", debugstr_w(str), *stringTable);
|
TRACE("%s, %p\n", debugstr_w(str), *stringTable);
|
||||||
|
|
||||||
strgtable = CoTaskMemAlloc(len*sizeof(*strgtable));
|
strgtable = CoTaskMemAlloc((len + 1)*sizeof(*strgtable));
|
||||||
|
|
||||||
if (strgtable==NULL)
|
if (strgtable==NULL)
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
Loading…
Reference in New Issue
Block a user