Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
81887909
Commit
81887909
authored
May 05, 2005
by
Matthew Mastracci
Committed by
Alexandre Julliard
May 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace StgCreateStorageEx stub with call to StgCreateDocfile and add
required STGFMT_* enumerations.
parent
05a494c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
storage32.c
dlls/ole32/storage32.c
+27
-1
objbase.h
include/objbase.h
+5
-0
No files found.
dlls/ole32/storage32.c
View file @
81887909
...
...
@@ -5585,7 +5585,33 @@ HRESULT WINAPI StgCreateStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD st
{
TRACE
(
"(%s, %lx, %lx, %lx, %p, %p, %p, %p)
\n
"
,
debugstr_w
(
pwcsName
),
grfMode
,
stgfmt
,
grfAttrs
,
pStgOptions
,
reserved
,
riid
,
ppObjectOpen
);
return
STG_E_UNIMPLEMENTEDFUNCTION
;
if
(
stgfmt
!=
STGFMT_FILE
&&
grfAttrs
!=
0
)
{
ERR
(
"grfAttrs must be 0 if stgfmt != STGFMT_FILE
\n
"
);
return
STG_E_INVALIDPARAMETER
;
}
if
(
stgfmt
!=
STGFMT_FILE
&&
grfAttrs
!=
0
&&
grfAttrs
!=
FILE_FLAG_NO_BUFFERING
)
{
ERR
(
"grfAttrs must be 0 or FILE_FLAG_NO_BUFFERING if stgfmt == STGFMT_FILE
\n
"
);
return
STG_E_INVALIDPARAMETER
;
}
if
(
stgfmt
==
STGFMT_FILE
)
{
ERR
(
"Cannot use STGFMT_FILE - this is NTFS only
\n
"
);
return
STG_E_INVALIDPARAMETER
;
}
if
(
stgfmt
==
STGFMT_STORAGE
||
stgfmt
==
STGFMT_DOCFILE
)
{
FIXME
(
"Stub: calling StgCreateDocfile, but ignoring pStgOptions and grfAttrs
\n
"
);
return
StgCreateDocfile
(
pwcsName
,
grfMode
,
0
,
(
IStorage
**
)
ppObjectOpen
);
}
ERR
(
"Invalid stgfmt argument
\n
"
);
return
STG_E_INVALIDPARAMETER
;
}
/******************************************************************************
...
...
include/objbase.h
View file @
81887909
...
...
@@ -463,6 +463,11 @@ HRESULT WINAPI MonikerRelativePathTo(LPMONIKER pmkSrc, LPMONIKER pmkDest, LPMONI
#define STGM_NOSNAPSHOT 0x00200000
#define STGM_DIRECT_SWMR 0x00400000
#define STGFMT_STORAGE 0
#define STGFMT_FILE 3
#define STGFMT_ANY 4
#define STGFMT_DOCFILE 5
typedef
struct
tagSTGOPTIONS
{
USHORT
usVersion
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment