ole32: Use default values if options passed to StgCreateStorageEx are NULL.

oldstable
Andrew Bogott 2010-11-09 04:25:19 -06:00 committed by Alexandre Julliard
parent 5083f0d20c
commit 42cd791c4d
1 changed files with 3 additions and 0 deletions

View File

@ -7430,6 +7430,9 @@ HRESULT WINAPI StgCreateStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD st
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);
}