From 74304fc31cc02ce4899d02835fef8511f7e23157 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 2 Jan 1999 08:22:34 +0000 Subject: [PATCH] Fixed bug in CreateFileMapping when name is not NULL. --- memory/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory/virtual.c b/memory/virtual.c index 203add1d1ff..0950942d911 100644 --- a/memory/virtual.c +++ b/memory/virtual.c @@ -1191,7 +1191,7 @@ HANDLE32 WINAPI CreateFileMapping32A( req.protect = vprot; CLIENT_SendRequest( REQ_CREATE_MAPPING, -1, 2, &req, sizeof(req), - name, name ? strlen(name) : 0 ); + name, name ? strlen(name) + 1 : 0 ); if (CLIENT_WaitSimpleReply( &reply, sizeof(reply), NULL )) goto error; -- 2.11.4.GIT