From 9fd5ceb9681d987b241ffee798d4c917cb20951d Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 31 Oct 1998 12:20:39 +0000 Subject: [PATCH] Removed the FIXME() and moved SetLastError(0) to the end (so that GetTempFileName et.al. can't overwrite it). --- memory/virtual.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/memory/virtual.c b/memory/virtual.c index a0d62f19005..5d90f73d626 100644 --- a/memory/virtual.c +++ b/memory/virtual.c @@ -1094,7 +1094,6 @@ HANDLE32 WINAPI CreateFileMapping32A( K32OBJ *obj = K32OBJ_FindName( name ); - SetLastError(0); /* Win95 does that for some functions, like CFM */ if (obj) { if (obj->type == K32OBJ_MEM_MAPPED_FILE) @@ -1133,7 +1132,6 @@ HANDLE32 WINAPI CreateFileMapping32A( if (hFile == INVALID_HANDLE_VALUE32) { - FIXME(virtual,"shared anon mapping (%s, size %d) not correctly supported!\n",debugstr_a(name),size_low); if (!size_high && !size_low) { SetLastError( ERROR_INVALID_PARAMETER ); @@ -1206,6 +1204,7 @@ HANDLE32 WINAPI CreateFileMapping32A( else handle = HANDLE_Alloc( PROCESS_Current(), &mapping->header, FILE_MAP_ALL_ACCESS /*FIXME*/, inherit, -1 ); K32OBJ_DecCount( &mapping->header ); + SetLastError(0); /* Last error value is relevant. (see the start of fun) */ return handle; error: