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
73419dc4
Commit
73419dc4
authored
Dec 29, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Return END_OF_CHAIN for chains starting with special sector values.
parent
00d36ac9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
storage32.c
dlls/ole32/storage32.c
+2
-7
storage32.h
dlls/ole32/storage32.h
+1
-0
No files found.
dlls/ole32/storage32.c
View file @
73419dc4
...
@@ -6995,10 +6995,8 @@ static ULONG BlockChainStream_GetHeadOfChain(BlockChainStream* This)
...
@@ -6995,10 +6995,8 @@ static ULONG BlockChainStream_GetHeadOfChain(BlockChainStream* This)
This
->
ownerDirEntry
,
This
->
ownerDirEntry
,
&
chainEntry
);
&
chainEntry
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
)
&&
chainEntry
.
startingBlock
<
BLOCK_FIRST_SPECIAL
)
{
return
chainEntry
.
startingBlock
;
return
chainEntry
.
startingBlock
;
}
}
}
return
BLOCK_END_OF_CHAIN
;
return
BLOCK_END_OF_CHAIN
;
...
@@ -7520,11 +7518,8 @@ static ULONG SmallBlockChainStream_GetHeadOfChain(
...
@@ -7520,11 +7518,8 @@ static ULONG SmallBlockChainStream_GetHeadOfChain(
This
->
ownerDirEntry
,
This
->
ownerDirEntry
,
&
chainEntry
);
&
chainEntry
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
)
&&
chainEntry
.
startingBlock
<
BLOCK_FIRST_SPECIAL
)
{
return
chainEntry
.
startingBlock
;
return
chainEntry
.
startingBlock
;
}
}
}
return
BLOCK_END_OF_CHAIN
;
return
BLOCK_END_OF_CHAIN
;
...
...
dlls/ole32/storage32.h
View file @
73419dc4
...
@@ -78,6 +78,7 @@ static const WORD MAX_BIG_BLOCK_SIZE_BITS = 0x000c;
...
@@ -78,6 +78,7 @@ static const WORD MAX_BIG_BLOCK_SIZE_BITS = 0x000c;
static
const
WORD
DEF_SMALL_BLOCK_SIZE_BITS
=
0x0006
;
static
const
WORD
DEF_SMALL_BLOCK_SIZE_BITS
=
0x0006
;
static
const
WORD
DEF_BIG_BLOCK_SIZE
=
0x0200
;
static
const
WORD
DEF_BIG_BLOCK_SIZE
=
0x0200
;
static
const
WORD
DEF_SMALL_BLOCK_SIZE
=
0x0040
;
static
const
WORD
DEF_SMALL_BLOCK_SIZE
=
0x0040
;
static
const
ULONG
BLOCK_FIRST_SPECIAL
=
0xFFFFFFFB
;
static
const
ULONG
BLOCK_EXTBBDEPOT
=
0xFFFFFFFC
;
static
const
ULONG
BLOCK_EXTBBDEPOT
=
0xFFFFFFFC
;
static
const
ULONG
BLOCK_SPECIAL
=
0xFFFFFFFD
;
static
const
ULONG
BLOCK_SPECIAL
=
0xFFFFFFFD
;
static
const
ULONG
BLOCK_END_OF_CHAIN
=
0xFFFFFFFE
;
static
const
ULONG
BLOCK_END_OF_CHAIN
=
0xFFFFFFFE
;
...
...
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