if (MAP_FAILED == loadedBase)
{
- ERROR_(LOADER)( "mmap failed with code %d: %s.\n", errno, strerror( errno ) );
+ /* ERROR_(LOADER) */ fprintf(stderr, "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;
(void**)&loadedHeader);
if (NO_ERROR != palError)
{
- ERROR_(LOADER)( "mmap of PE header failed\n" );
+ /* ERROR_(LOADER) */ fprintf(stderr, "mmap of PE header failed\n" );
goto doneReleaseMappingCriticalSection;
}
§ionData);
if (NO_ERROR != palError)
{
- ERROR_(LOADER)( "mmap of section %d failed\n", i );
+ /* ERROR_(LOADER) */ fprintf(stderr, "mmap of section %d failed\n", i );
goto doneReleaseMappingCriticalSection;
}
else
{
retval = NULL;
- LOGEXIT("MAPMapPEFile error: %d\n", palError);
+ /* LOGEXIT */ fprintf(stderr, "MAPMapPEFile error: %d\n", palError);
// If we had an error, and had mapped anything, we need to unmap it
if (loadedBase != NULL)