server: Use a better error code for a zero-size mapped file.
diff --git a/server/mapping.c b/server/mapping.c
index c9813f2..af6f074 100644
--- a/server/mapping.c
+++ b/server/mapping.c
@@ -308,7 +308,7 @@
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;
}
}
diff --git a/server/trace.c b/server/trace.c
index fcc447e..fb1be68 100644
--- a/server/trace.c
+++ b/server/trace.c
@@ -3848,7 +3848,6 @@
{ "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 @@
{ "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 },