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
69ff6f74
Commit
69ff6f74
authored
Jun 30, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Jul 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Simplify the FileMonikerImpl_BindToStorage code.
parent
7447b37f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
filemoniker.c
dlls/ole32/filemoniker.c
+3
-14
No files found.
dlls/ole32/filemoniker.c
View file @
69ff6f74
...
...
@@ -605,22 +605,11 @@ FileMonikerImpl_BindToStorage(IMoniker* iface, IBindCtx* pbc, IMoniker* pmkToLef
/* get the file name */
IMoniker_GetDisplayName
(
iface
,
pbc
,
pmkToLeft
,
&
filePath
);
/* verify if the file contains a storage object */
res
=
StgIsStorageFile
(
filePath
);
res
=
StgOpenStorage
(
filePath
,
NULL
,
STGM_READWRITE
|
STGM_SHARE_DENY_WRITE
,
NULL
,
0
,
&
pstg
);
if
(
res
==
S_OK
){
if
(
SUCCEEDED
(
res
))
*
ppvObject
=
pstg
;
res
=
StgOpenStorage
(
filePath
,
NULL
,
STGM_READWRITE
|
STGM_SHARE_DENY_WRITE
,
NULL
,
0
,
&
pstg
);
if
(
SUCCEEDED
(
res
)){
*
ppvObject
=
pstg
;
IStorage_AddRef
(
pstg
);
return
res
;
}
}
CoTaskMemFree
(
filePath
);
}
else
...
...
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