ole32: Use default values if options passed to StgCreateStorageEx are NULL.
This commit is contained in:
parent
5083f0d20c
commit
42cd791c4d
|
@ -7430,6 +7430,9 @@ HRESULT WINAPI StgCreateStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD st
|
||||||
|
|
||||||
if (stgfmt == STGFMT_STORAGE || stgfmt == STGFMT_DOCFILE)
|
if (stgfmt == STGFMT_STORAGE || stgfmt == STGFMT_DOCFILE)
|
||||||
{
|
{
|
||||||
|
STGOPTIONS defaultOptions = {1, 0, 512};
|
||||||
|
|
||||||
|
if (!pStgOptions) pStgOptions = &defaultOptions;
|
||||||
return create_storagefile(pwcsName, grfMode, grfAttrs, pStgOptions, riid, ppObjectOpen);
|
return create_storagefile(pwcsName, grfMode, grfAttrs, pStgOptions, riid, ppObjectOpen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue