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
e77e9e45
Commit
e77e9e45
authored
Nov 12, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add a DirRef type for references to directory entries.
parent
d3dbc8b1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
stg_stream.c
dlls/ole32/stg_stream.c
+1
-1
storage32.c
dlls/ole32/storage32.c
+0
-0
storage32.h
dlls/ole32/storage32.h
+17
-12
No files found.
dlls/ole32/stg_stream.c
View file @
e77e9e45
...
...
@@ -962,7 +962,7 @@ static const IStreamVtbl StgStreamImpl_Vtbl =
StgStreamImpl
*
StgStreamImpl_Construct
(
StorageBaseImpl
*
parentStorage
,
DWORD
grfMode
,
ULONG
dirEntry
)
DirRef
dirEntry
)
{
StgStreamImpl
*
newStream
;
...
...
dlls/ole32/storage32.c
View file @
e77e9e45
This diff is collapsed.
Click to expand it.
dlls/ole32/storage32.h
View file @
e77e9e45
...
...
@@ -122,6 +122,11 @@ typedef struct DirEntry DirEntry;
typedef
struct
StgStreamImpl
StgStreamImpl
;
/*
* A reference to a directory entry in the file or a transacted cache.
*/
typedef
ULONG
DirRef
;
/*
* This utility structure is used to read/write the information in a directory
* entry.
*/
...
...
@@ -130,9 +135,9 @@ struct DirEntry
WCHAR
name
[
DIRENTRY_NAME_MAX_LEN
];
WORD
sizeOfNameString
;
BYTE
stgType
;
ULONG
leftChild
;
ULONG
rightChild
;
ULONG
dirRootEntry
;
DirRef
leftChild
;
DirRef
rightChild
;
DirRef
dirRootEntry
;
GUID
clsid
;
FILETIME
ctime
;
FILETIME
mtime
;
...
...
@@ -209,7 +214,7 @@ struct StorageBaseImpl
/*
* Index of the directory entry of this storage
*/
ULONG
storageDirEntry
;
DirRef
storageDirEntry
;
/*
* virtual Destructor method.
...
...
@@ -303,12 +308,12 @@ HRESULT StorageImpl_WriteRawDirEntry(
BOOL
StorageImpl_ReadDirEntry
(
StorageImpl
*
This
,
ULONG
index
,
DirRef
index
,
DirEntry
*
buffer
);
BOOL
StorageImpl_WriteDirEntry
(
StorageImpl
*
This
,
ULONG
index
,
DirRef
index
,
const
DirEntry
*
buffer
);
BlockChainStream
*
Storage32Impl_SmallBlocksToBigBlocks
(
...
...
@@ -354,7 +359,7 @@ struct StgStreamImpl
/*
* Index of the directory entry that owns (points to) this stream.
*/
ULONG
dirEntry
;
DirRef
dirEntry
;
/*
* Helper variable that contains the size of the stream
...
...
@@ -381,7 +386,7 @@ struct StgStreamImpl
StgStreamImpl
*
StgStreamImpl_Construct
(
StorageBaseImpl
*
parentStorage
,
DWORD
grfMode
,
ULONG
dirEntry
);
DirRef
dirEntry
);
/******************************************************************************
...
...
@@ -431,7 +436,7 @@ struct BlockChainStream
{
StorageImpl
*
parentStorage
;
ULONG
*
headOfStreamPlaceHolder
;
ULONG
ownerDirEntry
;
DirRef
ownerDirEntry
;
ULONG
lastBlockNoInSequence
;
ULONG
lastBlockNoInSequenceIndex
;
ULONG
tailIndex
;
...
...
@@ -444,7 +449,7 @@ struct BlockChainStream
BlockChainStream
*
BlockChainStream_Construct
(
StorageImpl
*
parentStorage
,
ULONG
*
headOfStreamPlaceHolder
,
ULONG
dirEntry
);
DirRef
dirEntry
);
void
BlockChainStream_Destroy
(
BlockChainStream
*
This
);
...
...
@@ -476,7 +481,7 @@ BOOL BlockChainStream_SetSize(
struct
SmallBlockChainStream
{
StorageImpl
*
parentStorage
;
ULONG
ownerDirEntry
;
DirRef
ownerDirEntry
;
ULONG
*
headOfStreamPlaceHolder
;
};
...
...
@@ -486,7 +491,7 @@ struct SmallBlockChainStream
SmallBlockChainStream
*
SmallBlockChainStream_Construct
(
StorageImpl
*
parentStorage
,
ULONG
*
headOfStreamPlaceHolder
,
ULONG
dirEntry
);
DirRef
dirEntry
);
void
SmallBlockChainStream_Destroy
(
SmallBlockChainStream
*
This
);
...
...
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