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
eab7899e
Commit
eab7899e
authored
Dec 03, 2023
by
Fabian Maurer
Committed by
Alexandre Julliard
Dec 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coml2: Move StgIsStorageILockBytes from ole32.
parent
5a0321ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
23 deletions
+23
-23
coml2.spec
dlls/coml2/coml2.spec
+1
-1
storage32.c
dlls/coml2/storage32.c
+22
-0
storage32.c
dlls/ole32/storage32.c
+0
-22
No files found.
dlls/coml2/coml2.spec
View file @
eab7899e
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
@ stub StgCreatePropStg
@ stub StgCreatePropStg
@ stub StgCreateStorageEx
@ stub StgCreateStorageEx
@ stub StgIsStorageFile
@ stub StgIsStorageFile
@ st
ub StgIsStorageILockBytes
@ st
dcall StgIsStorageILockBytes(ptr)
@ stub StgOpenPropStg
@ stub StgOpenPropStg
@ stub StgOpenStorage
@ stub StgOpenStorage
@ stub StgOpenStorageEx
@ stub StgOpenStorageEx
...
...
dlls/coml2/storage32.c
View file @
eab7899e
...
@@ -50,6 +50,8 @@
...
@@ -50,6 +50,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
storage
);
WINE_DEFAULT_DEBUG_CHANNEL
(
storage
);
static
const
BYTE
STORAGE_magic
[
8
]
=
{
0xd0
,
0xcf
,
0x11
,
0xe0
,
0xa1
,
0xb1
,
0x1a
,
0xe1
};
/***********************************************************************
/***********************************************************************
* WriteClassStg [coml2.@]
* WriteClassStg [coml2.@]
*/
*/
...
@@ -162,3 +164,23 @@ HRESULT WINAPI GetConvertStg(IStorage *stg)
...
@@ -162,3 +164,23 @@ HRESULT WINAPI GetConvertStg(IStorage *stg)
return
header
[
1
]
&
OleStream_Convert
?
S_OK
:
S_FALSE
;
return
header
[
1
]
&
OleStream_Convert
?
S_OK
:
S_FALSE
;
}
}
/******************************************************************************
* StgIsStorageILockBytes [coml2.@]
*/
HRESULT
WINAPI
StgIsStorageILockBytes
(
ILockBytes
*
plkbyt
)
{
BYTE
sig
[
sizeof
(
STORAGE_magic
)];
ULARGE_INTEGER
offset
;
ULONG
read
=
0
;
offset
.
HighPart
=
0
;
offset
.
LowPart
=
0
;
ILockBytes_ReadAt
(
plkbyt
,
offset
,
sig
,
sizeof
(
sig
),
&
read
);
if
(
read
==
sizeof
(
sig
)
&&
memcmp
(
sig
,
STORAGE_magic
,
sizeof
(
sig
))
==
0
)
return
S_OK
;
return
S_FALSE
;
}
dlls/ole32/storage32.c
View file @
eab7899e
...
@@ -9004,28 +9004,6 @@ HRESULT WINAPI StgSetTimes(OLECHAR const *str, FILETIME const *pctime,
...
@@ -9004,28 +9004,6 @@ HRESULT WINAPI StgSetTimes(OLECHAR const *str, FILETIME const *pctime,
return
r
;
return
r
;
}
}
/******************************************************************************
* StgIsStorageILockBytes [OLE32.@]
*
* Determines if the ILockBytes contains a storage object.
*/
HRESULT
WINAPI
StgIsStorageILockBytes
(
ILockBytes
*
plkbyt
)
{
BYTE
sig
[
sizeof
(
STORAGE_magic
)];
ULARGE_INTEGER
offset
;
ULONG
read
=
0
;
offset
.
HighPart
=
0
;
offset
.
LowPart
=
0
;
ILockBytes_ReadAt
(
plkbyt
,
offset
,
sig
,
sizeof
(
sig
),
&
read
);
if
(
read
==
sizeof
(
sig
)
&&
memcmp
(
sig
,
STORAGE_magic
,
sizeof
(
sig
))
==
0
)
return
S_OK
;
return
S_FALSE
;
}
/***********************************************************************
/***********************************************************************
* OleLoadFromStream (OLE32.@)
* OleLoadFromStream (OLE32.@)
*
*
...
...
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