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
ee39a21d
Commit
ee39a21d
authored
Nov 30, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add DestroyDirEntry to the storage vtable.
parent
f43e013f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
storage32.c
dlls/ole32/storage32.c
+14
-9
storage32.h
dlls/ole32/storage32.h
+7
-0
No files found.
dlls/ole32/storage32.c
View file @
ee39a21d
...
...
@@ -184,10 +184,6 @@ static HRESULT removeFromTree(
* Declaration of the functions used to manipulate DirEntry
*/
static
HRESULT
destroyDirEntry
(
StorageImpl
*
storage
,
DirRef
index
);
static
HRESULT
insertIntoTree
(
StorageBaseImpl
*
This
,
DirRef
parentStorageIndex
,
...
...
@@ -1244,12 +1240,13 @@ static HRESULT StorageImpl_CreateDirEntry(
*
* Mark a directory entry in the file as free.
*/
static
HRESULT
d
estroyDirEntry
(
Storage
Impl
*
storag
e
,
static
HRESULT
StorageImpl_D
estroyDirEntry
(
Storage
BaseImpl
*
bas
e
,
DirRef
index
)
{
HRESULT
hr
;
BYTE
emptyData
[
RAW_DIRENTRY_SIZE
];
StorageImpl
*
storage
=
(
StorageImpl
*
)
base
;
memset
(
&
emptyData
,
0
,
RAW_DIRENTRY_SIZE
);
...
...
@@ -1820,8 +1817,7 @@ static HRESULT WINAPI StorageBaseImpl_DestroyElement(
* Invalidate the entry
*/
if
(
SUCCEEDED
(
hr
))
destroyDirEntry
(
This
->
ancestorStorage
,
entryToDeleteRef
);
StorageBaseImpl_DestroyDirEntry
(
This
,
entryToDeleteRef
);
return
hr
;
}
...
...
@@ -2227,6 +2223,7 @@ static const StorageBaseImplVtbl StorageImpl_BaseVtbl =
StorageImpl_CreateDirEntry
,
StorageImpl_BaseWriteDirEntry
,
StorageImpl_BaseReadDirEntry
,
StorageImpl_DestroyDirEntry
};
static
HRESULT
StorageImpl_Construct
(
...
...
@@ -3667,6 +3664,13 @@ static HRESULT StorageInternalImpl_ReadDirEntry(StorageBaseImpl *base,
index
,
data
);
}
static
HRESULT
StorageInternalImpl_DestroyDirEntry
(
StorageBaseImpl
*
base
,
DirRef
index
)
{
return
StorageBaseImpl_DestroyDirEntry
(
&
base
->
ancestorStorage
->
base
,
index
);
}
/******************************************************************************
**
** Storage32InternalImpl_Commit
...
...
@@ -4112,7 +4116,8 @@ static const StorageBaseImplVtbl StorageInternalImpl_BaseVtbl =
StorageInternalImpl_Destroy
,
StorageInternalImpl_CreateDirEntry
,
StorageInternalImpl_WriteDirEntry
,
StorageInternalImpl_ReadDirEntry
StorageInternalImpl_ReadDirEntry
,
StorageInternalImpl_DestroyDirEntry
};
/******************************************************************************
...
...
dlls/ole32/storage32.h
View file @
ee39a21d
...
...
@@ -251,6 +251,7 @@ struct StorageBaseImplVtbl {
HRESULT
(
*
CreateDirEntry
)(
StorageBaseImpl
*
,
const
DirEntry
*
,
DirRef
*
);
HRESULT
(
*
WriteDirEntry
)(
StorageBaseImpl
*
,
DirRef
,
const
DirEntry
*
);
HRESULT
(
*
ReadDirEntry
)(
StorageBaseImpl
*
,
DirRef
,
DirEntry
*
);
HRESULT
(
*
DestroyDirEntry
)(
StorageBaseImpl
*
,
DirRef
);
};
static
inline
void
StorageBaseImpl_Destroy
(
StorageBaseImpl
*
This
)
...
...
@@ -276,6 +277,12 @@ static inline HRESULT StorageBaseImpl_ReadDirEntry(StorageBaseImpl *This,
return
This
->
baseVtbl
->
ReadDirEntry
(
This
,
index
,
data
);
}
static
inline
HRESULT
StorageBaseImpl_DestroyDirEntry
(
StorageBaseImpl
*
This
,
DirRef
index
)
{
return
This
->
baseVtbl
->
DestroyDirEntry
(
This
,
index
);
}
/****************************************************************************
* 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