Piotr Caban : ole32: Fix minimal size check of compound file in StgOpenStorage.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Dec 10 08:32:28 CST 2015
Module: wine
Branch: master
Commit: 726698ab81cd9f916b7926b0e761ae9a05dc694d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=726698ab81cd9f916b7926b0e761ae9a05dc694d
Author: Piotr Caban <piotr at codeweavers.com>
Date: Thu Dec 10 14:09:52 2015 +0100
ole32: Fix minimal size check of compound file in StgOpenStorage.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 bf1c1b3..2bc9d3d 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;
More information about the wine-cvs
mailing list