Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
55ab8098
Commit
55ab8098
authored
Jul 11, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Only print a FIXME if necessary in StgOpenStorageEx.
parent
5cb1045a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
storage32.c
dlls/ole32/storage32.c
+20
-15
No files found.
dlls/ole32/storage32.c
View file @
55ab8098
...
...
@@ -5829,28 +5829,33 @@ HRESULT WINAPI StgOpenStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD stgf
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
)
switch
(
stgfmt
)
{
case
STGFMT_FILE
:
ERR
(
"Cannot use STGFMT_FILE - this is NTFS only
\n
"
);
return
STG_E_INVALIDPARAMETER
;
}
case
STGFMT_STORAGE
:
break
;
if
(
stgfmt
==
STGFMT_STORAGE
||
stgfmt
==
STGFMT_DOCFILE
||
stgfmt
==
STGFMT_ANY
)
{
if
(
stgfmt
==
STGFMT_ANY
)
WARN
(
"STGFMT_ANY assuming storage
\n
"
);
case
STGFMT_DOCFILE
:
if
(
grfAttrs
&&
grfAttrs
!=
FILE_FLAG_NO_BUFFERING
)
{
ERR
(
"grfAttrs must be 0 or FILE_FLAG_NO_BUFFERING if stgfmt == STGFMT_DOCFILE
\n
"
);
return
STG_E_INVALIDPARAMETER
;
}
FIXME
(
"Stub: calling StgOpenStorage, but ignoring pStgOptions and grfAttrs
\n
"
);
return
StgOpenStorage
(
pwcsName
,
NULL
,
grfMode
,
(
SNB
)
NULL
,
0
,
(
IStorage
**
)
ppObjectOpen
);
break
;
case
STGFMT_ANY
:
WARN
(
"STGFMT_ANY assuming storage
\n
"
);
break
;
default:
return
STG_E_INVALIDPARAMETER
;
}
ERR
(
"Invalid stgfmt argument
\n
"
);
return
STG_E_INVALIDPARAMETER
;
return
StgOpenStorage
(
pwcsName
,
NULL
,
grfMode
,
(
SNB
)
NULL
,
0
,
(
IStorage
**
)
ppObjectOpen
);
}
...
...
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