Rob Shearman : ole32: Fix size of memory allocation in FileMonikerImpl_DecomposePath.
Module: wine Branch: master Commit: 377159c4a76a9e7d830498d01b40b989f7223983 URL: http://source.winehq.org/git/wine.git/?a=commit;h=377159c4a76a9e7d830498d01b... Author: Rob Shearman <robertshearman(a)gmail.com> Date: Fri Nov 20 14:38:01 2009 +0000 ole32: Fix size of memory allocation in FileMonikerImpl_DecomposePath. --- dlls/ole32/filemoniker.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/filemoniker.c b/dlls/ole32/filemoniker.c index 9decfaf..c179b7f 100644 --- a/dlls/ole32/filemoniker.c +++ b/dlls/ole32/filemoniker.c @@ -1036,7 +1036,7 @@ int FileMonikerImpl_DecomposePath(LPCOLESTR str, LPOLESTR** stringTable) TRACE("%s, %p\n", debugstr_w(str), *stringTable); - strgtable = CoTaskMemAlloc(len*sizeof(WCHAR)); + strgtable = CoTaskMemAlloc(len*sizeof(*strgtable)); if (strgtable==NULL) return E_OUTOFMEMORY;
participants (1)
-
Alexandre Julliard