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
aca5cc52
Commit
aca5cc52
authored
Nov 12, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename property variables in SmallBlockChainStream methods.
parent
8f2d0f88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
storage32.c
dlls/ole32/storage32.c
+26
-26
No files found.
dlls/ole32/storage32.c
View file @
aca5cc52
...
...
@@ -4680,7 +4680,7 @@ void SmallBlockChainStream_Destroy(
static
ULONG
SmallBlockChainStream_GetHeadOfChain
(
SmallBlockChainStream
*
This
)
{
DirEntry
chain
Propert
y
;
DirEntry
chain
Entr
y
;
BOOL
readSuccessful
;
if
(
This
->
headOfStreamPlaceHolder
!=
NULL
)
...
...
@@ -4691,11 +4691,11 @@ static ULONG SmallBlockChainStream_GetHeadOfChain(
readSuccessful
=
StorageImpl_ReadDirEntry
(
This
->
parentStorage
,
This
->
ownerDirEntry
,
&
chain
Propert
y
);
&
chain
Entr
y
);
if
(
readSuccessful
)
{
return
chain
Propert
y
.
startingBlock
;
return
chain
Entr
y
.
startingBlock
;
}
}
...
...
@@ -4874,7 +4874,7 @@ static ULONG SmallBlockChainStream_GetNextFreeBlock(
/*
* We have just created the small block depot.
*/
DirEntry
root
Prop
;
DirEntry
root
Entry
;
ULONG
sbStartIndex
;
/*
...
...
@@ -4897,16 +4897,16 @@ static ULONG SmallBlockChainStream_GetNextFreeBlock(
StorageImpl_ReadDirEntry
(
This
->
parentStorage
,
This
->
parentStorage
->
base
.
storageDirEntry
,
&
root
Prop
);
&
root
Entry
);
root
Prop
.
startingBlock
=
sbStartIndex
;
root
Prop
.
size
.
u
.
HighPart
=
0
;
root
Prop
.
size
.
u
.
LowPart
=
This
->
parentStorage
->
bigBlockSize
;
root
Entry
.
startingBlock
=
sbStartIndex
;
root
Entry
.
size
.
u
.
HighPart
=
0
;
root
Entry
.
size
.
u
.
LowPart
=
This
->
parentStorage
->
bigBlockSize
;
StorageImpl_WriteDirEntry
(
This
->
parentStorage
,
This
->
parentStorage
->
base
.
storageDirEntry
,
&
root
Prop
);
&
root
Entry
);
}
else
StorageImpl_SaveFileHeader
(
This
->
parentStorage
);
...
...
@@ -4921,27 +4921,27 @@ static ULONG SmallBlockChainStream_GetNextFreeBlock(
*/
if
(
blockIndex
%
smallBlocksPerBigBlock
==
0
)
{
DirEntry
root
Prop
;
DirEntry
root
Entry
;
ULONG
blocksRequired
=
(
blockIndex
/
smallBlocksPerBigBlock
)
+
1
;
StorageImpl_ReadDirEntry
(
This
->
parentStorage
,
This
->
parentStorage
->
base
.
storageDirEntry
,
&
root
Prop
);
&
root
Entry
);
if
(
root
Prop
.
size
.
u
.
LowPart
<
if
(
root
Entry
.
size
.
u
.
LowPart
<
(
blocksRequired
*
This
->
parentStorage
->
bigBlockSize
))
{
root
Prop
.
size
.
u
.
LowPart
+=
This
->
parentStorage
->
bigBlockSize
;
root
Entry
.
size
.
u
.
LowPart
+=
This
->
parentStorage
->
bigBlockSize
;
BlockChainStream_SetSize
(
This
->
parentStorage
->
smallBlockRootChain
,
root
Prop
.
size
);
root
Entry
.
size
);
StorageImpl_WriteDirEntry
(
This
->
parentStorage
,
This
->
parentStorage
->
base
.
storageDirEntry
,
&
root
Prop
);
&
root
Entry
);
}
}
...
...
@@ -5171,17 +5171,17 @@ static BOOL SmallBlockChainStream_Shrink(
*/
if
(
count
==
0
)
{
DirEntry
chain
Prop
;
DirEntry
chain
Entry
;
StorageImpl_ReadDirEntry
(
This
->
parentStorage
,
This
->
ownerDirEntry
,
&
chain
Prop
);
&
chain
Entry
);
chain
Prop
.
startingBlock
=
BLOCK_END_OF_CHAIN
;
chain
Entry
.
startingBlock
=
BLOCK_END_OF_CHAIN
;
StorageImpl_WriteDirEntry
(
This
->
parentStorage
,
This
->
ownerDirEntry
,
&
chain
Prop
);
&
chain
Entry
);
/*
* We start freeing the chain at the head block.
...
...
@@ -5249,15 +5249,15 @@ static BOOL SmallBlockChainStream_Enlarge(
}
else
{
DirEntry
chain
Prop
;
DirEntry
chain
Entry
;
StorageImpl_ReadDirEntry
(
This
->
parentStorage
,
This
->
ownerDirEntry
,
&
chain
Prop
);
&
chain
Entry
);
chain
Prop
.
startingBlock
=
blockIndex
;
chain
Entry
.
startingBlock
=
blockIndex
;
StorageImpl_WriteDirEntry
(
This
->
parentStorage
,
This
->
ownerDirEntry
,
&
chain
Prop
);
&
chain
Entry
);
}
}
...
...
@@ -5366,7 +5366,7 @@ static ULONG SmallBlockChainStream_GetCount(SmallBlockChainStream* This)
*/
static
ULARGE_INTEGER
SmallBlockChainStream_GetSize
(
SmallBlockChainStream
*
This
)
{
DirEntry
chain
Propert
y
;
DirEntry
chain
Entr
y
;
if
(
This
->
headOfStreamPlaceHolder
!=
NULL
)
{
...
...
@@ -5382,9 +5382,9 @@ static ULARGE_INTEGER SmallBlockChainStream_GetSize(SmallBlockChainStream* This)
StorageImpl_ReadDirEntry
(
This
->
parentStorage
,
This
->
ownerDirEntry
,
&
chain
Propert
y
);
&
chain
Entr
y
);
return
chain
Propert
y
.
size
;
return
chain
Entr
y
.
size
;
}
/******************************************************************************
...
...
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