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
db69dcb5
Commit
db69dcb5
authored
Feb 24, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Feb 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add struct StorageBaseImpl at the start of derived structures instead
of trying to keep the first members the same.
parent
f7c99e3a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
27 deletions
+5
-27
stg_prop.c
dlls/ole32/stg_prop.c
+1
-1
storage32.c
dlls/ole32/storage32.c
+0
-0
storage32.h
dlls/ole32/storage32.h
+4
-26
No files found.
dlls/ole32/stg_prop.c
View file @
db69dcb5
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
storage
);
WINE_DEFAULT_DEBUG_CHANNEL
(
storage
);
#define _IPropertySetStorage_Offset ((int)(&(((StorageImpl*)0)->pssVtbl)))
#define _IPropertySetStorage_Offset ((int)(&(((StorageImpl*)0)->
base.
pssVtbl)))
#define _ICOM_THIS_From_IPropertySetStorage(class, name) \
#define _ICOM_THIS_From_IPropertySetStorage(class, name) \
class* This = (class*)(((char*)name)-_IPropertySetStorage_Offset)
class* This = (class*)(((char*)name)-_IPropertySetStorage_Offset)
...
...
dlls/ole32/storage32.c
View file @
db69dcb5
This diff is collapsed.
Click to expand it.
dlls/ole32/storage32.h
View file @
db69dcb5
...
@@ -300,19 +300,7 @@ HRESULT WINAPI StorageBaseImpl_SetClass(
...
@@ -300,19 +300,7 @@ HRESULT WINAPI StorageBaseImpl_SetClass(
*/
*/
struct
StorageImpl
struct
StorageImpl
{
{
IStorageVtbl
*
lpVtbl
;
/* Needs to be the first item in the struct
struct
StorageBaseImpl
base
;
* since we want to cast this in a Storage32 pointer */
IPropertySetStorageVtbl
*
pssVtbl
;
/* interface for adding a properties stream */
/*
* Declare the member of the Storage32BaseImpl class to allow
* casting as a Storage32BaseImpl
*/
ULONG
ref
;
struct
StorageImpl
*
ancestorStorage
;
ULONG
rootPropertySetIndex
;
void
(
*
v_destructor
)(
struct
StorageImpl
*
);
/*
/*
* The following data members are specific to the Storage32Impl
* The following data members are specific to the Storage32Impl
...
@@ -409,7 +397,7 @@ HRESULT WINAPI StorageImpl_Stat(IStorage* iface,
...
@@ -409,7 +397,7 @@ HRESULT WINAPI StorageImpl_Stat(IStorage* iface,
DWORD
grfStatFlag
);
/* [in] */
DWORD
grfStatFlag
);
/* [in] */
void
StorageImpl_Destroy
(
void
StorageImpl_Destroy
(
StorageImpl
*
This
);
Storage
Base
Impl
*
This
);
HRESULT
StorageImpl_Construct
(
HRESULT
StorageImpl_Construct
(
StorageImpl
*
This
,
StorageImpl
*
This
,
...
@@ -502,17 +490,7 @@ void Storage32Impl_SetExtDepotBlock(StorageImpl* This,
...
@@ -502,17 +490,7 @@ void Storage32Impl_SetExtDepotBlock(StorageImpl* This,
*/
*/
struct
StorageInternalImpl
struct
StorageInternalImpl
{
{
IStorageVtbl
*
lpVtbl
;
/* Needs to be the first item in the struct
struct
StorageBaseImpl
base
;
* since we want to cast this in a Storage32 pointer */
/*
* Declare the member of the Storage32BaseImpl class to allow
* casting as a Storage32BaseImpl
*/
ULONG
ref
;
struct
StorageImpl
*
ancestorStorage
;
ULONG
rootPropertySetIndex
;
void
(
*
v_destructor
)(
struct
StorageInternalImpl
*
);
/*
/*
* There is no specific data for this class.
* There is no specific data for this class.
...
@@ -527,7 +505,7 @@ StorageInternalImpl* StorageInternalImpl_Construct(
...
@@ -527,7 +505,7 @@ StorageInternalImpl* StorageInternalImpl_Construct(
ULONG
rootTropertyIndex
);
ULONG
rootTropertyIndex
);
void
StorageInternalImpl_Destroy
(
void
StorageInternalImpl_Destroy
(
Storage
Internal
Impl
*
This
);
Storage
Base
Impl
*
This
);
HRESULT
WINAPI
StorageInternalImpl_Commit
(
HRESULT
WINAPI
StorageInternalImpl_Commit
(
IStorage
*
iface
,
IStorage
*
iface
,
...
...
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