Commit 74304fc3 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed bug in CreateFileMapping when name is not NULL.

parent a6ac379b
......@@ -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;
......
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