Andrew Bogott : ole32: Use default values if options passed to StgCreateStorageEx are NULL.
Alexandre Julliard
julliard at winehq.org
Thu Nov 18 11:09:31 CST 2010
Module: wine
Branch: master
Commit: 42cd791c4dcd8ea8d45c99675efc3a27c5aa5859
URL: http://source.winehq.org/git/wine.git/?a=commit;h=42cd791c4dcd8ea8d45c99675efc3a27c5aa5859
Author: Andrew Bogott <andrew at CodeWeavers.com>
Date: Tue Nov 9 04:25:19 2010 -0600
ole32: Use default values if options passed to StgCreateStorageEx are NULL.
---
dlls/ole32/storage32.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index b58e445..2d62956 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -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);
}
More information about the wine-cvs
mailing list