Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
92666974
Commit
92666974
authored
Mar 10, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Remove the NUM_BLOCKS_PER_DEPOT_BLOCK define.
This should always be calculated based on the big block size.
parent
7b431237
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
storage32.c
dlls/ole32/storage32.c
+4
-2
storage32.h
dlls/ole32/storage32.h
+1
-7
No files found.
dlls/ole32/storage32.c
View file @
92666974
...
...
@@ -3159,7 +3159,7 @@ static HRESULT StorageImpl_GetNextBlockInChain(
BYTE
depotBuffer
[
MAX_BIG_BLOCK_SIZE
];
BOOL
success
;
ULONG
depotBlockIndexPos
;
int
index
;
int
index
,
num_blocks
;
*
nextBlockIndex
=
BLOCK_SPECIAL
;
...
...
@@ -3194,7 +3194,9 @@ static HRESULT StorageImpl_GetNextBlockInChain(
if
(
!
success
)
return
STG_E_READFAULT
;
for
(
index
=
0
;
index
<
NUM_BLOCKS_PER_DEPOT_BLOCK
;
index
++
)
num_blocks
=
This
->
bigBlockSize
/
4
;
for
(
index
=
0
;
index
<
num_blocks
;
index
++
)
{
StorageUtl_ReadDWord
(
depotBuffer
,
index
*
sizeof
(
ULONG
),
nextBlockIndex
);
This
->
blockDepotCached
[
index
]
=
*
nextBlockIndex
;
...
...
dlls/ole32/storage32.h
View file @
92666974
...
...
@@ -96,14 +96,8 @@ static const ULONG DIRENTRY_NULL = 0xFFFFFFFF;
*/
#define STGTY_ROOT 0x05
/*
* These defines assume a hardcoded blocksize. The code will assert
* if the blocksize is different. Some changes will have to be done if it
* becomes the case.
*/
#define COUNT_BBDEPOTINHEADER 109
#define LIMIT_TO_USE_SMALL_BLOCK 0x1000
#define NUM_BLOCKS_PER_DEPOT_BLOCK 128
#define STGM_ACCESS_MODE(stgm) ((stgm)&0x0000f)
#define STGM_SHARE_MODE(stgm) ((stgm)&0x000f0)
...
...
@@ -363,7 +357,7 @@ struct StorageImpl
ULONG
extBigBlockDepotCount
;
ULONG
bigBlockDepotStart
[
COUNT_BBDEPOTINHEADER
];
ULONG
blockDepotCached
[
NUM_BLOCKS_PER_DEPOT_BLOCK
];
ULONG
blockDepotCached
[
MAX_BIG_BLOCK_SIZE
/
4
];
ULONG
indexBlockDepotCached
;
ULONG
prevFreeBlock
;
...
...
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