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:
parent
157d2e961a
commit
726698ab81
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue