server: Use a better error code for a zero-size mapped file.
This commit is contained in:
parent
4e7b8f4a7b
commit
2017555b06
|
@ -308,7 +308,7 @@ static struct object *create_mapping( struct directory *root, const struct unico
|
|||
if (!get_file_size( mapping->file, &size )) goto error;
|
||||
if (!size)
|
||||
{
|
||||
set_error( STATUS_FILE_INVALID );
|
||||
set_error( STATUS_MAPPED_FILE_SIZE_ZERO );
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3848,7 +3848,6 @@ static const struct
|
|||
{ "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
|
||||
{ "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
|
||||
{ "ERROR_SEEK", 0xc0010000 | ERROR_SEEK },
|
||||
{ "FILE_INVALID", STATUS_FILE_INVALID },
|
||||
{ "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
|
||||
{ "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
|
||||
{ "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
|
||||
|
@ -3859,6 +3858,7 @@ static const struct
|
|||
{ "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
|
||||
{ "IO_TIMEOUT", STATUS_IO_TIMEOUT },
|
||||
{ "KEY_DELETED", STATUS_KEY_DELETED },
|
||||
{ "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
|
||||
{ "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
|
||||
{ "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
|
||||
{ "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
|
||||
|
|
Loading…
Reference in New Issue