mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 16:30:26 +00:00
[FREELDR] Demote the ArcOpen() trace in WinLdrLoadImage() to a warning only.
This commit is contained in:
parent
4016225269
commit
dca43193c8
1 changed files with 19 additions and 19 deletions
|
@ -182,6 +182,7 @@ WinLdrAllocateDataTableEntry(IN OUT PLIST_ENTRY ModuleListHead,
|
|||
PLDR_DATA_TABLE_ENTRY DataTableEntry;
|
||||
PIMAGE_NT_HEADERS NtHeaders;
|
||||
USHORT Length;
|
||||
|
||||
TRACE("WinLdrAllocateDataTableEntry(, '%s', '%s', %p)\n",
|
||||
BaseDllName, FullDllName, BasePA);
|
||||
|
||||
|
@ -281,13 +282,14 @@ WinLdrLoadImage(IN PCHAR FileName,
|
|||
ARC_STATUS Status;
|
||||
LARGE_INTEGER Position;
|
||||
ULONG i, BytesRead;
|
||||
|
||||
TRACE("WinLdrLoadImage(%s, %ld, *)\n", FileName, MemoryType);
|
||||
|
||||
/* Open the image file */
|
||||
Status = ArcOpen(FileName, OpenReadOnly, &FileId);
|
||||
if (Status != ESUCCESS)
|
||||
{
|
||||
ERR("ArcOpen(FileName: \"%s\", OpenReadOnly: %u) failed. Status %u\n", FileName, OpenReadOnly, Status);
|
||||
WARN("ArcOpen(FileName: '%s') failed. Status: %u\n", FileName, Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -604,14 +606,13 @@ WinLdrpBindImportName(IN OUT PLIST_ENTRY ModuleListHead,
|
|||
/* Compare the names */
|
||||
Result = strcmp(ExportName, (PCHAR)ImportData->Name);
|
||||
|
||||
/*TRACE("Binary search: comparing Import '__', Export '%s'\n",*/
|
||||
/*VaToPa(&((PIMAGE_IMPORT_BY_NAME)VaToPa(ThunkData->u1.AddressOfData))->Name[0]),*/
|
||||
/*(PCHAR)VaToPa(RVA(DllBase, NameTable[Middle])));*/
|
||||
|
||||
/*TRACE("TE->u1.AOD %p, fulladdr %p\n",
|
||||
ThunkData->u1.AddressOfData,
|
||||
((PIMAGE_IMPORT_BY_NAME)VaToPa(ThunkData->u1.AddressOfData))->Name );*/
|
||||
// TRACE("Binary search: comparing Import '__', Export '%s'\n",
|
||||
// VaToPa(&((PIMAGE_IMPORT_BY_NAME)VaToPa(ThunkData->u1.AddressOfData))->Name[0]),
|
||||
// (PCHAR)VaToPa(RVA(DllBase, NameTable[Middle])));
|
||||
|
||||
// TRACE("TE->u1.AOD %p, fulladdr %p\n",
|
||||
// ThunkData->u1.AddressOfData,
|
||||
// ((PIMAGE_IMPORT_BY_NAME)VaToPa(ThunkData->u1.AddressOfData))->Name );
|
||||
|
||||
/* Depending on result of strcmp, perform different actions */
|
||||
if (Result > 0)
|
||||
|
@ -634,7 +635,6 @@ WinLdrpBindImportName(IN OUT PLIST_ENTRY ModuleListHead,
|
|||
/* If high boundary is less than low boundary, then no result found */
|
||||
if (High < Low)
|
||||
{
|
||||
//Print(L"Error in binary search\n");
|
||||
ERR("Did not find export '%s'!\n", (PCHAR)ImportData->Name);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -668,6 +668,7 @@ WinLdrpBindImportName(IN OUT PLIST_ENTRY ModuleListHead,
|
|||
CHAR ForwardDllName[255];
|
||||
PIMAGE_EXPORT_DIRECTORY RefExportDirectory;
|
||||
ULONG RefExportSize;
|
||||
|
||||
TRACE("WinLdrpBindImportName(): ForwarderName %s\n", ForwarderName);
|
||||
|
||||
/* Save the name of the forward dll */
|
||||
|
@ -770,7 +771,6 @@ WinLdrpLoadAndScanReferencedDll(PLIST_ENTRY ModuleListHead,
|
|||
strcat(FullDllName, ImportName);
|
||||
|
||||
TRACE("Loading referenced DLL: %s\n", FullDllName);
|
||||
//Print(L"Loading referenced DLL: %s\n", FullDllName);
|
||||
|
||||
/* Load the image */
|
||||
Success = WinLdrLoadImage(FullDllName, LoaderBootDriver, &BasePA);
|
||||
|
|
Loading…
Reference in a new issue