ole32: Allow storage files with a block size of 4096 to open.
authorVincent Povirk <vincent@codeweavers.com>
Wed, 10 Mar 2010 21:08:57 +0000 (15:08 -0600)
committerTest Robot <wine-patches-test@office.etersoft.ru>
Fri, 4 Mar 2011 19:28:15 +0000 (22:28 +0300)
dlls/ole32/storage32.c

index 9d99429a1227e4f7e471f4be25decb94355ed689..21f8e1c8d6c03cd850dda79ec0864c7f4b6df406 100644 (file)
@@ -3146,7 +3146,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");