Piotr Caban : ole32: Fix minimal size check of compound file in StgOpenStorage.
Module: wine Branch: master Commit: 726698ab81cd9f916b7926b0e761ae9a05dc694d URL: http://source.winehq.org/git/wine.git/?a=commit;h=726698ab81cd9f916b7926b0e7... Author: Piotr Caban <piotr(a)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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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;
participants (1)
-
Alexandre Julliard