Commit 726698ab authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

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

parent 157d2e96
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment