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
6e028f41
Commit
6e028f41
authored
May 06, 2005
by
Matthew Mastracci
Committed by
Alexandre Julliard
May 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace stub entry for StgOpenStorageEx with call to StgOpenStorage.
parent
b3957e30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletion
+40
-1
ole32.spec
dlls/ole32/ole32.spec
+1
-1
storage32.c
dlls/ole32/storage32.c
+39
-0
No files found.
dlls/ole32/ole32.spec
View file @
6e028f41
...
...
@@ -247,7 +247,7 @@
@ stub STGMEDIUM_UserUnmarshal
@ stub StgOpenAsyncDocfileOnIFillLockBytes
@ stdcall StgOpenStorage(wstr ptr long ptr long ptr)
@ st
ub StgOpenStorageEx
@ st
dcall StgOpenStorageEx(wstr long long long ptr ptr ptr ptr)
@ stdcall StgOpenStorageOnILockBytes(ptr ptr long long long ptr)
@ stdcall StgSetTimes(wstr ptr ptr ptr )
@ stdcall StringFromCLSID(ptr ptr)
...
...
dlls/ole32/storage32.c
View file @
6e028f41
...
...
@@ -5632,6 +5632,45 @@ HRESULT WINAPI StgCreatePropSetStg(IStorage *pstg, DWORD reserved,
}
/******************************************************************************
* StgOpenStorageEx [OLE32.@]
*/
HRESULT
WINAPI
StgOpenStorageEx
(
const
WCHAR
*
pwcsName
,
DWORD
grfMode
,
DWORD
stgfmt
,
DWORD
grfAttrs
,
STGOPTIONS
*
pStgOptions
,
void
*
reserved
,
REFIID
riid
,
void
**
ppObjectOpen
)
{
TRACE
(
"(%s, %lx, %lx, %lx, %p, %p, %p, %p)
\n
"
,
debugstr_w
(
pwcsName
),
grfMode
,
stgfmt
,
grfAttrs
,
pStgOptions
,
reserved
,
riid
,
ppObjectOpen
);
if
(
stgfmt
!=
STGFMT_DOCFILE
&&
grfAttrs
!=
0
)
{
ERR
(
"grfAttrs must be 0 if stgfmt != STGFMT_DOCFILE
\n
"
);
return
STG_E_INVALIDPARAMETER
;
}
if
(
stgfmt
!=
STGFMT_DOCFILE
&&
grfAttrs
!=
0
&&
grfAttrs
!=
FILE_FLAG_NO_BUFFERING
)
{
ERR
(
"grfAttrs must be 0 or FILE_FLAG_NO_BUFFERING if stgfmt == STGFMT_DOCFILE
\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
||
stgfmt
==
STGFMT_ANY
)
{
if
(
stgfmt
==
STGFMT_ANY
)
WARN
(
"STGFMT_ANY assuming storage
\n
"
);
FIXME
(
"Stub: calling StgOpenStorage, but ignoring pStgOptions and grfAttrs
\n
"
);
return
StgOpenStorage
(
pwcsName
,
NULL
,
grfMode
,
(
SNB
)
NULL
,
0
,
(
IStorage
**
)
ppObjectOpen
);
}
ERR
(
"Invalid stgfmt argument
\n
"
);
return
STG_E_INVALIDPARAMETER
;
}
/******************************************************************************
* StgOpenStorage [OLE32.@]
*/
HRESULT
WINAPI
StgOpenStorage
(
...
...
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