Module: wine
Branch: master
Commit: 93c2256cfff643bdc2ca61dd1fdee9f4a45e859e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=93c2256cfff643bdc2ca61dd1…
Author: Vincent Povirk <vincent(a)codeweavers.com>
Date: Wed Mar 10 15:08:57 2010 -0600
ole32: Allow storage files with a block size of 4096 to open.
---
dlls/ole32/storage32.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index 6ee60a1..f1706da 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -3381,7 +3381,7 @@ static HRESULT StorageImpl_LoadFileHeader(
* Right now, the code is making some assumptions about the size of the
* blocks, just make sure they are what we're expecting.
*/
- if (This->bigBlockSize != DEF_BIG_BLOCK_SIZE ||
+ if ((This->bigBlockSize != MIN_BIG_BLOCK_SIZE && This->bigBlockSize != MAX_BIG_BLOCK_SIZE) ||
This->smallBlockSize != DEF_SMALL_BLOCK_SIZE)
{
WARN("Broken OLE storage file\n");