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
b045d726
Commit
b045d726
authored
Apr 10, 2016
by
Alex Henrie
Committed by
Alexandre Julliard
Apr 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Implement StgOpenPropStg.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
004e9f94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
ole32.spec
dlls/ole32/ole32.spec
+1
-0
stg_prop.c
dlls/ole32/stg_prop.c
+43
-0
No files found.
dlls/ole32/ole32.spec
View file @
b045d726
...
...
@@ -270,6 +270,7 @@
@ stdcall StgIsStorageFile(wstr)
@ stdcall StgIsStorageILockBytes(ptr)
@ stub StgOpenAsyncDocfileOnIFillLockBytes
@ stdcall StgOpenPropStg(ptr ptr long long ptr)
@ stdcall StgOpenStorage(wstr ptr long ptr long ptr)
@ stdcall StgOpenStorageEx(wstr long long long ptr ptr ptr ptr)
@ stdcall StgOpenStorageOnILockBytes(ptr ptr long long long ptr)
...
...
dlls/ole32/stg_prop.c
View file @
b045d726
...
...
@@ -2810,3 +2810,46 @@ end:
TRACE
(
"returning 0x%08x
\n
"
,
r
);
return
r
;
}
HRESULT
WINAPI
StgOpenPropStg
(
IUnknown
*
unk
,
REFFMTID
fmt
,
DWORD
flags
,
DWORD
reserved
,
IPropertyStorage
**
prop_stg
)
{
IStorage
*
stg
;
IStream
*
stm
;
HRESULT
r
;
TRACE
(
"%p %s %08x %d %p
\n
"
,
unk
,
debugstr_guid
(
fmt
),
flags
,
reserved
,
prop_stg
);
if
(
!
fmt
||
reserved
)
{
r
=
E_INVALIDARG
;
goto
end
;
}
if
(
flags
&
PROPSETFLAG_NONSIMPLE
)
{
r
=
IUnknown_QueryInterface
(
unk
,
&
IID_IStorage
,
(
void
**
)
&
stg
);
if
(
FAILED
(
r
))
goto
end
;
/* FIXME: if (flags & PROPSETFLAG_NONSIMPLE), we need to open a
* storage, not a stream. For now, disallow it.
*/
FIXME
(
"PROPSETFLAG_NONSIMPLE not supported
\n
"
);
IStorage_Release
(
stg
);
r
=
STG_E_INVALIDFLAG
;
}
else
{
r
=
IUnknown_QueryInterface
(
unk
,
&
IID_IStream
,
(
void
**
)
&
stm
);
if
(
FAILED
(
r
))
goto
end
;
r
=
PropertyStorage_ConstructFromStream
(
stm
,
fmt
,
STGM_READWRITE
|
STGM_SHARE_EXCLUSIVE
,
prop_stg
);
}
end:
TRACE
(
"returning 0x%08x
\n
"
,
r
);
return
r
;
}
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