CreateFileMapping SetLastError(0)s on newly created mappings.
This commit is contained in:
parent
c912749be5
commit
fe14ab6183
|
@ -1080,6 +1080,7 @@ HANDLE WINAPI CreateFileMappingA(
|
||||||
CLIENT_SendRequest( REQ_CREATE_MAPPING, -1, 2,
|
CLIENT_SendRequest( REQ_CREATE_MAPPING, -1, 2,
|
||||||
&req, sizeof(req),
|
&req, sizeof(req),
|
||||||
name, name ? strlen(name) + 1 : 0 );
|
name, name ? strlen(name) + 1 : 0 );
|
||||||
|
SetLastError(0);
|
||||||
CLIENT_WaitSimpleReply( &reply, sizeof(reply), NULL );
|
CLIENT_WaitSimpleReply( &reply, sizeof(reply), NULL );
|
||||||
if (reply.handle == -1) return 0;
|
if (reply.handle == -1) return 0;
|
||||||
return reply.handle;
|
return reply.handle;
|
||||||
|
|
Loading…
Reference in New Issue