diff options
Diffstat (limited to 'src/pal/src/map/map.cpp')
-rw-r--r-- | src/pal/src/map/map.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/pal/src/map/map.cpp b/src/pal/src/map/map.cpp index 1bc6d44f3b..ea59b71330 100644 --- a/src/pal/src/map/map.cpp +++ b/src/pal/src/map/map.cpp @@ -179,7 +179,7 @@ FileMappingCleanupRoutine( if (pImmutableData->bPALCreatedTempFile) { - InternalUnlink(pThread, pImmutableData->szFileName); + unlink(pImmutableData->szFileName); } } @@ -240,7 +240,6 @@ FileMappingInitializationRoutine( reinterpret_cast<CFileMappingProcessLocalData *>(pvProcessLocalData); pProcessLocalData->UnixFd = InternalOpen( - pThread, pImmutableData->szFileName, MAPProtectionToFileOpenFlags(pImmutableData->flProtect) ); @@ -506,7 +505,7 @@ CorUnix::InternalCreateFileMapping( #if HAVE_MMAP_DEV_ZERO - UnixFd = InternalOpen(pThread, pImmutableData->szFileName, O_RDWR); + UnixFd = InternalOpen(pImmutableData->szFileName, O_RDWR); if ( -1 == UnixFd ) { ERROR( "Unable to open the file.\n"); @@ -767,7 +766,7 @@ ExitInternalCreateFileMapping: if (bPALCreatedTempFile) { - InternalUnlink(pThread, pImmutableData->szFileName); + unlink(pImmutableData->szFileName); } if (-1 != UnixFd) @@ -784,9 +783,9 @@ ExitInternalCreateFileMapping: if (NULL != pFileObject) { pFileObject->ReleaseReference(pThread); - } + } - return palError; + return palError; } /*++ |