mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Removed the FIXME() and moved SetLastError(0) to the end (so that
GetTempFileName et.al. can't overwrite it).
This commit is contained in:
parent
8143accee2
commit
9fd5ceb968
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue