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
Hide 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 @@
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) \
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(
*/
struct
StorageImpl
{
IStorageVtbl
*
lpVtbl
;
/* Needs to be the first item in the struct
* 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
*
);
struct
StorageBaseImpl
base
;
/*
* The following data members are specific to the Storage32Impl
...
...
@@ -409,7 +397,7 @@ HRESULT WINAPI StorageImpl_Stat(IStorage* iface,
DWORD
grfStatFlag
);
/* [in] */
void
StorageImpl_Destroy
(
StorageImpl
*
This
);
Storage
Base
Impl
*
This
);
HRESULT
StorageImpl_Construct
(
StorageImpl
*
This
,
...
...
@@ -502,17 +490,7 @@ void Storage32Impl_SetExtDepotBlock(StorageImpl* This,
*/
struct
StorageInternalImpl
{
IStorageVtbl
*
lpVtbl
;
/* Needs to be the first item in the struct
* 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
*
);
struct
StorageBaseImpl
base
;
/*
* There is no specific data for this class.
...
...
@@ -527,7 +505,7 @@ StorageInternalImpl* StorageInternalImpl_Construct(
ULONG
rootTropertyIndex
);
void
StorageInternalImpl_Destroy
(
Storage
Internal
Impl
*
This
);
Storage
Base
Impl
*
This
);
HRESULT
WINAPI
StorageInternalImpl_Commit
(
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