CreateFileMapping SetLastError(0)s on newly created mappings.

This commit is contained in:
Marcus Meissner 1999-03-09 17:26:49 +00:00 committed by Alexandre Julliard
parent c912749be5
commit fe14ab6183
1 changed files with 1 additions and 0 deletions

View File

@ -1080,6 +1080,7 @@ HANDLE WINAPI CreateFileMappingA(
CLIENT_SendRequest( REQ_CREATE_MAPPING, -1, 2,
&req, sizeof(req),
name, name ? strlen(name) + 1 : 0 );
SetLastError(0);
CLIENT_WaitSimpleReply( &reply, sizeof(reply), NULL );
if (reply.handle == -1) return 0;
return reply.handle;