[ntdll] Fix debug print, output the flags if available

svn path=/trunk/; revision=44518
This commit is contained in:
Gregor Schneider 2009-12-10 11:02:45 +00:00
parent e5672aaeca
commit dba413c7b7

View file

@ -902,10 +902,11 @@ LdrLoadDll (IN PWSTR SearchPath OPTIONAL,
ULONG_PTR cookie;
PPEB Peb = NtCurrentPeb();
TRACE_LDR("LdrLoadDll, loading %wZ%s%S\n",
TRACE_LDR("LdrLoadDll loading %wZ%S%S with flags %d\n",
Name,
SearchPath ? L" from " : L"",
SearchPath ? SearchPath : L"");
SearchPath ? SearchPath : L"",
LoadFlags ? *LoadFlags : 0);
Status = LdrpLoadModule(SearchPath, LoadFlags ? *LoadFlags : 0, Name, &Module, BaseAddress);
@ -1493,7 +1494,7 @@ LdrpGetOrLoadModule(PWCHAR SearchPath,
UNICODE_STRING DllName;
NTSTATUS Status;
DPRINT("LdrpGetOrLoadModule() called for %s\n", Name);
DPRINT1("LdrpGetOrLoadModule() called for %s\n", Name);
RtlInitAnsiString(&AnsiDllName, Name);
Status = RtlAnsiStringToUnicodeString(&DllName, &AnsiDllName, TRUE);