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
fae82527
Commit
fae82527
authored
Nov 16, 2023
by
Fabian Maurer
Committed by
Alexandre Julliard
Dec 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coml2: Move ReadClassStg from ole32.
parent
a72b534d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
36 deletions
+25
-36
coml2.spec
dlls/coml2/coml2.spec
+1
-1
storage32.c
dlls/coml2/storage32.c
+24
-0
storage32.c
dlls/ole32/storage32.c
+0
-35
No files found.
dlls/coml2/coml2.spec
View file @
fae82527
...
...
@@ -15,7 +15,7 @@
@ stdcall GetConvertStg(ptr)
@ stdcall GetHGlobalFromILockBytes(ptr ptr)
@ stub PropStgNameToFmtId
@ st
ub ReadClassStg
@ st
dcall ReadClassStg(ptr ptr)
@ stdcall ReadClassStm(ptr ptr)
@ stub StgCreateDocfile
@ stub StgCreateDocfileOnILockBytes
...
...
dlls/coml2/storage32.c
View file @
fae82527
...
...
@@ -51,6 +51,30 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
storage
);
/***********************************************************************
* ReadClassStg (coml2.@)
*/
HRESULT
WINAPI
ReadClassStg
(
IStorage
*
pstg
,
CLSID
*
pclsid
)
{
STATSTG
pstatstg
;
HRESULT
hRes
;
TRACE
(
"(%p, %p)
\n
"
,
pstg
,
pclsid
);
if
(
!
pstg
||
!
pclsid
)
return
E_INVALIDARG
;
/*
* read a STATSTG structure (contains the clsid) from the storage
*/
hRes
=
IStorage_Stat
(
pstg
,
&
pstatstg
,
STATFLAG_NONAME
);
if
(
SUCCEEDED
(
hRes
))
*
pclsid
=
pstatstg
.
clsid
;
return
hRes
;
}
/***********************************************************************
* ReadClassStm (coml2.@)
*/
HRESULT
WINAPI
ReadClassStm
(
IStream
*
pStm
,
CLSID
*
pclsid
)
...
...
dlls/ole32/storage32.c
View file @
fae82527
...
...
@@ -9043,41 +9043,6 @@ HRESULT WINAPI WriteClassStg(IStorage* pStg, REFCLSID rclsid)
}
/***********************************************************************
* ReadClassStg (OLE32.@)
*
* This method reads the CLSID previously written to a storage object with
* the WriteClassStg.
*
* PARAMS
* pstg [I] IStorage pointer
* pclsid [O] Pointer to where the CLSID is written
*
* RETURNS
* Success: S_OK.
* Failure: HRESULT code.
*/
HRESULT
WINAPI
ReadClassStg
(
IStorage
*
pstg
,
CLSID
*
pclsid
){
STATSTG
pstatstg
;
HRESULT
hRes
;
TRACE
(
"(%p, %p)
\n
"
,
pstg
,
pclsid
);
if
(
!
pstg
||
!
pclsid
)
return
E_INVALIDARG
;
/*
* read a STATSTG structure (contains the clsid) from the storage
*/
hRes
=
IStorage_Stat
(
pstg
,
&
pstatstg
,
STATFLAG_NONAME
);
if
(
SUCCEEDED
(
hRes
))
*
pclsid
=
pstatstg
.
clsid
;
return
hRes
;
}
/***********************************************************************
* OleLoadFromStream (OLE32.@)
*
* This function loads an object from stream
...
...
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