Commit 113b290d authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ole32: Allocate more for FmtIdToPropStgName (Coverity).

parent 0d4c3996
...@@ -2178,7 +2178,7 @@ static HRESULT WINAPI IPropertySetStorage_fnCreate( ...@@ -2178,7 +2178,7 @@ static HRESULT WINAPI IPropertySetStorage_fnCreate(
IPropertyStorage** ppprstg) IPropertyStorage** ppprstg)
{ {
StorageImpl *This = impl_from_IPropertySetStorage(ppstg); StorageImpl *This = impl_from_IPropertySetStorage(ppstg);
WCHAR name[CCH_MAX_PROPSTG_NAME]; WCHAR name[CCH_MAX_PROPSTG_NAME + 1];
IStream *stm = NULL; IStream *stm = NULL;
HRESULT r; HRESULT r;
...@@ -2236,7 +2236,7 @@ static HRESULT WINAPI IPropertySetStorage_fnOpen( ...@@ -2236,7 +2236,7 @@ static HRESULT WINAPI IPropertySetStorage_fnOpen(
{ {
StorageImpl *This = impl_from_IPropertySetStorage(ppstg); StorageImpl *This = impl_from_IPropertySetStorage(ppstg);
IStream *stm = NULL; IStream *stm = NULL;
WCHAR name[CCH_MAX_PROPSTG_NAME]; WCHAR name[CCH_MAX_PROPSTG_NAME + 1];
HRESULT r; HRESULT r;
TRACE("%p %s %08x %p\n", This, debugstr_guid(rfmtid), grfMode, ppprstg); TRACE("%p %s %08x %p\n", This, debugstr_guid(rfmtid), grfMode, ppprstg);
...@@ -2280,7 +2280,7 @@ static HRESULT WINAPI IPropertySetStorage_fnDelete( ...@@ -2280,7 +2280,7 @@ static HRESULT WINAPI IPropertySetStorage_fnDelete(
REFFMTID rfmtid) REFFMTID rfmtid)
{ {
StorageImpl *This = impl_from_IPropertySetStorage(ppstg); StorageImpl *This = impl_from_IPropertySetStorage(ppstg);
WCHAR name[CCH_MAX_PROPSTG_NAME]; WCHAR name[CCH_MAX_PROPSTG_NAME + 1];
HRESULT r; HRESULT r;
TRACE("%p %s\n", This, debugstr_guid(rfmtid)); TRACE("%p %s\n", This, debugstr_guid(rfmtid));
......
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