Commit dc82769e authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Mapping a zero size file should fail.

parent a16d7259
......@@ -289,6 +289,11 @@ static struct object *create_mapping( int size_high, int size_low, int protect,
if (!size_high && !size_low)
{
if (!get_file_size( mapping->file, &size_high, &size_low )) goto error;
if (!size_high && !size_low)
{
set_error( STATUS_FILE_INVALID );
goto error;
}
}
else
{
......
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