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
a72b534d
Commit
a72b534d
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 ReadClassStm from ole32.
parent
c6f049fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
39 deletions
+28
-39
coml2.spec
dlls/coml2/coml2.spec
+1
-1
storage32.c
dlls/coml2/storage32.c
+27
-0
storage32.c
dlls/ole32/storage32.c
+0
-38
No files found.
dlls/coml2/coml2.spec
View file @
a72b534d
...
...
@@ -16,7 +16,7 @@
@ stdcall GetHGlobalFromILockBytes(ptr ptr)
@ stub PropStgNameToFmtId
@ stub ReadClassStg
@ st
ub ReadClassStm
@ st
dcall ReadClassStm(ptr ptr)
@ stub StgCreateDocfile
@ stub StgCreateDocfileOnILockBytes
@ stub StgCreatePropSetStg
...
...
dlls/coml2/storage32.c
View file @
a72b534d
...
...
@@ -50,6 +50,33 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
storage
);
/***********************************************************************
* ReadClassStm (coml2.@)
*/
HRESULT
WINAPI
ReadClassStm
(
IStream
*
pStm
,
CLSID
*
pclsid
)
{
ULONG
nbByte
;
HRESULT
res
;
TRACE
(
"(%p,%p)
\n
"
,
pStm
,
pclsid
);
if
(
!
pStm
||
!
pclsid
)
return
E_INVALIDARG
;
/* clear the output args */
*
pclsid
=
CLSID_NULL
;
res
=
IStream_Read
(
pStm
,
pclsid
,
sizeof
(
CLSID
),
&
nbByte
);
if
(
FAILED
(
res
))
return
res
;
if
(
nbByte
!=
sizeof
(
CLSID
))
return
STG_E_READFAULT
;
else
return
S_OK
;
}
enum
stream_1ole_flags
{
OleStream_LinkedObject
=
0x00000001
,
OleStream_Convert
=
0x00000004
...
...
dlls/ole32/storage32.c
View file @
a72b534d
...
...
@@ -9484,44 +9484,6 @@ HRESULT WINAPI WriteClassStm(IStream *pStm,REFCLSID rclsid)
return
IStream_Write
(
pStm
,
rclsid
,
sizeof
(
CLSID
),
NULL
);
}
/***********************************************************************
* ReadClassStm (OLE32.@)
*
* Reads a CLSID from a stream.
*
* PARAMS
* pStm [I] Stream to read from.
* rclsid [O] CLSID to read.
*
* RETURNS
* Success: S_OK.
* Failure: HRESULT code.
*/
HRESULT
WINAPI
ReadClassStm
(
IStream
*
pStm
,
CLSID
*
pclsid
)
{
ULONG
nbByte
;
HRESULT
res
;
TRACE
(
"(%p,%p)
\n
"
,
pStm
,
pclsid
);
if
(
!
pStm
||
!
pclsid
)
return
E_INVALIDARG
;
/* clear the output args */
*
pclsid
=
CLSID_NULL
;
res
=
IStream_Read
(
pStm
,
pclsid
,
sizeof
(
CLSID
),
&
nbByte
);
if
(
FAILED
(
res
))
return
res
;
if
(
nbByte
!=
sizeof
(
CLSID
))
return
STG_E_READFAULT
;
else
return
S_OK
;
}
/************************************************************************
* OleConvert Functions
***********************************************************************/
...
...
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