From 726698ab81cd9f916b7926b0e761ae9a05dc694d Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Thu, 10 Dec 2015 14:09:52 +0100 Subject: [PATCH] ole32: Fix minimal size check of compound file in StgOpenStorage. Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/ole32/storage32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index bf1c1b30217..2bc9d3d568a 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -8900,7 +8900,7 @@ HRESULT WINAPI StgOpenStorage( * Refuse to open the file if it's too small to be a structured storage file * FIXME: verify the file when reading instead of here */ - if (GetFileSize(hFile, NULL) < 0x100) + if (GetFileSize(hFile, NULL) < HEADER_SIZE) { CloseHandle(hFile); hr = STG_E_FILEALREADYEXISTS;