Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/pal/src/map/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2439,7 +2439,7 @@ void * MAPMapPEFile(HANDLE hFile)

if (MAP_FAILED == loadedBase)
{
/* ERROR_(LOADER) */ fprintf(stderr, "mmap failed with code %d: %s.\n", errno, strerror( errno ) );
ERROR_(LOADER)( "mmap failed with code %d: %s.\n", errno, strerror( errno ) );
palError = FILEGetLastErrorFromErrno();
loadedBase = NULL; // clear it so we don't try to use it during clean-up
goto doneReleaseMappingCriticalSection;
Expand Down Expand Up @@ -2475,7 +2475,7 @@ void * MAPMapPEFile(HANDLE hFile)
(void**)&loadedHeader);
if (NO_ERROR != palError)
{
/* ERROR_(LOADER) */ fprintf(stderr, "mmap of PE header failed\n" );
ERROR_(LOADER)( "mmap of PE header failed\n" );
goto doneReleaseMappingCriticalSection;
}

Expand Down Expand Up @@ -2570,7 +2570,7 @@ void * MAPMapPEFile(HANDLE hFile)
&sectionData);
if (NO_ERROR != palError)
{
/* ERROR_(LOADER) */ fprintf(stderr, "mmap of section %d failed\n", i );
ERROR_(LOADER)( "mmap of section %d failed\n", i );
goto doneReleaseMappingCriticalSection;
}

Expand Down Expand Up @@ -2633,7 +2633,7 @@ void * MAPMapPEFile(HANDLE hFile)
else
{
retval = NULL;
/* LOGEXIT */ fprintf(stderr, "MAPMapPEFile error: %d\n", palError);
LOGEXIT("MAPMapPEFile error: %d\n", palError);

// If we had an error, and had mapped anything, we need to unmap it
if (loadedBase != NULL)
Expand Down