Fixed bug in CreateFileMapping when name is not NULL.

This commit is contained in:
Alexandre Julliard 1999-01-02 08:22:34 +00:00
parent a6ac379b08
commit 74304fc31c
1 changed files with 1 additions and 1 deletions

View File

@ -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;