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
176cdfc7
Commit
176cdfc7
authored
Nov 25, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add WriteDirEntry to the storage vtable.
parent
8a332db2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
7 deletions
+30
-7
stg_stream.c
dlls/ole32/stg_stream.c
+1
-1
storage32.c
dlls/ole32/storage32.c
+22
-6
storage32.h
dlls/ole32/storage32.h
+7
-0
No files found.
dlls/ole32/stg_stream.c
View file @
176cdfc7
...
@@ -659,7 +659,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
...
@@ -659,7 +659,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
Storage
Impl_WriteDirEntry
(
This
->
parentStorage
->
ancestor
Storage
,
Storage
BaseImpl_WriteDirEntry
(
This
->
parent
Storage
,
This
->
dirEntry
,
This
->
dirEntry
,
&
currentEntry
);
&
currentEntry
);
}
}
...
...
dlls/ole32/storage32.c
View file @
176cdfc7
...
@@ -775,7 +775,7 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
...
@@ -775,7 +775,7 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
/* Change the name of the element */
/* Change the name of the element */
strcpyW
(
currentEntry
.
name
,
pwcsNewName
);
strcpyW
(
currentEntry
.
name
,
pwcsNewName
);
Storage
Impl_WriteDirEntry
(
This
->
ancestorStorage
,
currentEntryRef
,
Storage
BaseImpl_WriteDirEntry
(
This
,
currentEntryRef
,
&
currentEntry
);
&
currentEntry
);
/* Insert the element in a new position in the tree */
/* Insert the element in a new position in the tree */
...
@@ -971,9 +971,9 @@ static HRESULT WINAPI StorageBaseImpl_SetClass(
...
@@ -971,9 +971,9 @@ static HRESULT WINAPI StorageBaseImpl_SetClass(
{
{
currentEntry
.
clsid
=
*
clsid
;
currentEntry
.
clsid
=
*
clsid
;
hRes
=
Storage
Impl_WriteDirEntry
(
This
->
ancestorStorage
,
hRes
=
Storage
BaseImpl_WriteDirEntry
(
This
,
This
->
storageDirEntry
,
This
->
storageDirEntry
,
&
currentEntry
);
&
currentEntry
);
}
}
return
hRes
;
return
hRes
;
...
@@ -2182,6 +2182,13 @@ static HRESULT WINAPI StorageBaseImpl_SetStateBits(
...
@@ -2182,6 +2182,13 @@ static HRESULT WINAPI StorageBaseImpl_SetStateBits(
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
StorageImpl_BaseWriteDirEntry
(
StorageBaseImpl
*
base
,
DirRef
index
,
const
DirEntry
*
data
)
{
StorageImpl
*
This
=
(
StorageImpl
*
)
base
;
return
StorageImpl_WriteDirEntry
(
This
,
index
,
data
);
}
/*
/*
* Virtual function table for the IStorage32Impl class.
* Virtual function table for the IStorage32Impl class.
*/
*/
...
@@ -2210,7 +2217,8 @@ static const IStorageVtbl Storage32Impl_Vtbl =
...
@@ -2210,7 +2217,8 @@ static const IStorageVtbl Storage32Impl_Vtbl =
static
const
StorageBaseImplVtbl
StorageImpl_BaseVtbl
=
static
const
StorageBaseImplVtbl
StorageImpl_BaseVtbl
=
{
{
StorageImpl_Destroy
,
StorageImpl_Destroy
,
StorageImpl_CreateDirEntry
StorageImpl_CreateDirEntry
,
StorageImpl_BaseWriteDirEntry
};
};
static
HRESULT
StorageImpl_Construct
(
static
HRESULT
StorageImpl_Construct
(
...
@@ -3634,6 +3642,13 @@ static HRESULT StorageInternalImpl_CreateDirEntry(StorageBaseImpl *base,
...
@@ -3634,6 +3642,13 @@ static HRESULT StorageInternalImpl_CreateDirEntry(StorageBaseImpl *base,
newData
,
index
);
newData
,
index
);
}
}
static
HRESULT
StorageInternalImpl_WriteDirEntry
(
StorageBaseImpl
*
base
,
DirRef
index
,
const
DirEntry
*
data
)
{
return
StorageBaseImpl_WriteDirEntry
(
&
base
->
ancestorStorage
->
base
,
index
,
data
);
}
/******************************************************************************
/******************************************************************************
**
**
** Storage32InternalImpl_Commit
** Storage32InternalImpl_Commit
...
@@ -4077,7 +4092,8 @@ static const IStorageVtbl Storage32InternalImpl_Vtbl =
...
@@ -4077,7 +4092,8 @@ static const IStorageVtbl Storage32InternalImpl_Vtbl =
static
const
StorageBaseImplVtbl
StorageInternalImpl_BaseVtbl
=
static
const
StorageBaseImplVtbl
StorageInternalImpl_BaseVtbl
=
{
{
StorageInternalImpl_Destroy
,
StorageInternalImpl_Destroy
,
StorageInternalImpl_CreateDirEntry
StorageInternalImpl_CreateDirEntry
,
StorageInternalImpl_WriteDirEntry
};
};
/******************************************************************************
/******************************************************************************
...
...
dlls/ole32/storage32.h
View file @
176cdfc7
...
@@ -249,6 +249,7 @@ struct StorageBaseImpl
...
@@ -249,6 +249,7 @@ struct StorageBaseImpl
struct
StorageBaseImplVtbl
{
struct
StorageBaseImplVtbl
{
void
(
*
Destroy
)(
StorageBaseImpl
*
);
void
(
*
Destroy
)(
StorageBaseImpl
*
);
HRESULT
(
*
CreateDirEntry
)(
StorageBaseImpl
*
,
const
DirEntry
*
,
DirRef
*
);
HRESULT
(
*
CreateDirEntry
)(
StorageBaseImpl
*
,
const
DirEntry
*
,
DirRef
*
);
HRESULT
(
*
WriteDirEntry
)(
StorageBaseImpl
*
,
DirRef
,
const
DirEntry
*
);
};
};
static
inline
void
StorageBaseImpl_Destroy
(
StorageBaseImpl
*
This
)
static
inline
void
StorageBaseImpl_Destroy
(
StorageBaseImpl
*
This
)
...
@@ -262,6 +263,12 @@ static inline HRESULT StorageBaseImpl_CreateDirEntry(StorageBaseImpl *This,
...
@@ -262,6 +263,12 @@ static inline HRESULT StorageBaseImpl_CreateDirEntry(StorageBaseImpl *This,
return
This
->
baseVtbl
->
CreateDirEntry
(
This
,
newData
,
index
);
return
This
->
baseVtbl
->
CreateDirEntry
(
This
,
newData
,
index
);
}
}
static
inline
HRESULT
StorageBaseImpl_WriteDirEntry
(
StorageBaseImpl
*
This
,
DirRef
index
,
const
DirEntry
*
data
)
{
return
This
->
baseVtbl
->
WriteDirEntry
(
This
,
index
,
data
);
}
/****************************************************************************
/****************************************************************************
* StorageBaseImpl stream list handlers
* StorageBaseImpl stream list handlers
*/
*/
...
...
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