[PATCH v2 1/2] server: Introduce a separate FD type for file mapping.
Paul Gofman
pgofman at codeweavers.com
Sat May 2 06:09:27 CDT 2020
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
v2:
- no changes.
server/mapping.c | 2 +-
server/protocol.def | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/mapping.c b/server/mapping.c
index 6990a1913d..1c189a282b 100644
--- a/server/mapping.c
+++ b/server/mapping.c
@@ -934,7 +934,7 @@ static void mapping_destroy( struct object *obj )
static enum server_fd_type mapping_get_fd_type( struct fd *fd )
{
- return FD_TYPE_FILE;
+ return FD_TYPE_MAPPING;
}
int get_page_size(void)
diff --git a/server/protocol.def b/server/protocol.def
index 06a29b153e..9f60e323b6 100644
--- a/server/protocol.def
+++ b/server/protocol.def
@@ -1318,6 +1318,7 @@ enum server_fd_type
FD_TYPE_MAILSLOT, /* mailslot */
FD_TYPE_CHAR, /* unspecified char device */
FD_TYPE_DEVICE, /* Windows device file */
+ FD_TYPE_MAPPING, /* File mapping */
FD_TYPE_NB_TYPES
};
--
2.26.2
More information about the wine-devel
mailing list