Commit fe14ab61 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

CreateFileMapping SetLastError(0)s on newly created mappings.

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