ole32: Fix minimal size check of compound file in StgOpenStorage.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2015-12-10 14:09:52 +01:00 committed by Alexandre Julliard
parent 157d2e961a
commit 726698ab81
1 changed files with 1 additions and 1 deletions

View File

@ -8900,7 +8900,7 @@ HRESULT WINAPI StgOpenStorage(
* Refuse to open the file if it's too small to be a structured storage file * 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 * FIXME: verify the file when reading instead of here
*/ */
if (GetFileSize(hFile, NULL) < 0x100) if (GetFileSize(hFile, NULL) < HEADER_SIZE)
{ {
CloseHandle(hFile); CloseHandle(hFile);
hr = STG_E_FILEALREADYEXISTS; hr = STG_E_FILEALREADYEXISTS;