Unified "No implementation for..." warnings.

This commit is contained in:
Andreas Mohr 1998-11-07 12:35:50 +00:00 committed by Alexandre Julliard
parent 6a41a4bffd
commit 5fa740af1d
2 changed files with 11 additions and 10 deletions

View File

@ -219,7 +219,7 @@ BOOL32 NE_LoadSegment( NE_MODULE *pModule, WORD segnum )
(char *)pModule + pModule->name_table + 1 ); (char *)pModule + pModule->name_table + 1 );
else else
{ {
ERR(fixup, "No handler for %.*s.%d, setting to 0xdeadbeef\n", ERR(fixup, "No implementation for %.*s.%d, setting to 0xdeadbeef\n",
*((BYTE *)pTarget + pTarget->name_table), *((BYTE *)pTarget + pTarget->name_table),
(char *)pTarget + pTarget->name_table + 1, (char *)pTarget + pTarget->name_table + 1,
ordinal ); ordinal );
@ -249,7 +249,7 @@ BOOL32 NE_LoadSegment( NE_MODULE *pModule, WORD segnum )
if (ERR_ON(fixup) && !address) if (ERR_ON(fixup) && !address)
{ {
NE_MODULE *pTarget = NE_GetPtr( module ); NE_MODULE *pTarget = NE_GetPtr( module );
ERR(fixup, "Warning: no handler for %.*s.%s, setting to 0xdeadbeef\n", ERR(fixup, "No implementation for %.*s.%s, setting to 0xdeadbeef\n",
*((BYTE *)pTarget + pTarget->name_table), *((BYTE *)pTarget + pTarget->name_table),
(char *)pTarget + pTarget->name_table + 1, func_name ); (char *)pTarget + pTarget->name_table + 1, func_name );
} }

View File

@ -501,16 +501,17 @@ static HMODULE32 PE_LoadImage( HFILE32 hFile )
MSG("Trying to load PE image for unsupported architecture ("); MSG("Trying to load PE image for unsupported architecture (");
switch (PE_HEADER(hModule)->FileHeader.Machine) switch (PE_HEADER(hModule)->FileHeader.Machine)
{ {
case IMAGE_FILE_MACHINE_UNKNOWN: MSG("Unknown\n"); break; case IMAGE_FILE_MACHINE_UNKNOWN: MSG("Unknown"); break;
case IMAGE_FILE_MACHINE_I860: MSG("I860\n"); break; case IMAGE_FILE_MACHINE_I860: MSG("I860"); break;
case IMAGE_FILE_MACHINE_R3000: MSG("R3000\n"); break; case IMAGE_FILE_MACHINE_R3000: MSG("R3000"); break;
case IMAGE_FILE_MACHINE_R4000: MSG("R4000\n"); break; case IMAGE_FILE_MACHINE_R4000: MSG("R4000"); break;
case IMAGE_FILE_MACHINE_R10000: MSG("R10000\n"); break; case IMAGE_FILE_MACHINE_R10000: MSG("R10000"); break;
case IMAGE_FILE_MACHINE_ALPHA: MSG("Alpha\n"); break; case IMAGE_FILE_MACHINE_ALPHA: MSG("Alpha"); break;
case IMAGE_FILE_MACHINE_POWERPC: MSG("PowerPC\n"); break; case IMAGE_FILE_MACHINE_POWERPC: MSG("PowerPC"); break;
default: MSG("Unknown-%04x\n", default: MSG("Unknown-%04x",
PE_HEADER(hModule)->FileHeader.Machine); break; PE_HEADER(hModule)->FileHeader.Machine); break;
} }
MSG(")\n");
goto error; goto error;
} }
/* find out how large this executeable should be */ /* find out how large this executeable should be */