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
4ad114cf
Commit
4ad114cf
authored
May 06, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
May 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use the cached information in BlockChainStream_GetCount.
parent
96a939ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
storage32.c
dlls/ole32/storage32.c
+1
-19
No files found.
dlls/ole32/storage32.c
View file @
4ad114cf
...
...
@@ -5786,28 +5786,10 @@ static ULONG BlockChainStream_GetHeadOfChain(BlockChainStream* This)
*
* Returns the number of blocks that comprises this chain.
* This is not the size of the stream as the last block may not be full!
*
* FIXME: Use the cache to get this information.
*/
static
ULONG
BlockChainStream_GetCount
(
BlockChainStream
*
This
)
{
ULONG
blockIndex
;
ULONG
count
=
0
;
blockIndex
=
BlockChainStream_GetHeadOfChain
(
This
);
while
(
blockIndex
!=
BLOCK_END_OF_CHAIN
)
{
count
++
;
if
(
FAILED
(
StorageImpl_GetNextBlockInChain
(
This
->
parentStorage
,
blockIndex
,
&
blockIndex
)))
return
0
;
}
return
count
;
return
This
->
numBlocks
;
}
/******************************************************************************
...
...
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