mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[KERNEL32]
- Zero-initialize base address in BasepLoadLibraryAsDatafile. Should fix 2nd stage problems. - Add a trace debugprint, silented by default. See issue #6092 for more details. svn path=/trunk/; revision=51277
This commit is contained in:
parent
ef01012506
commit
a3690ead55
1 changed files with 4 additions and 2 deletions
|
@ -274,7 +274,7 @@ BasepLoadLibraryAsDatafile(PWSTR Path, LPCWSTR Name, HMODULE *hModule)
|
|||
HANDLE hFile = INVALID_HANDLE_VALUE;
|
||||
HANDLE hMapping;
|
||||
NTSTATUS Status;
|
||||
PVOID lpBaseAddress;
|
||||
PVOID lpBaseAddress = NULL;
|
||||
SIZE_T ViewSize;
|
||||
//PUNICODE_STRING OriginalName;
|
||||
//UNICODE_STRING dotDLL = RTL_CONSTANT_STRING(L".DLL");
|
||||
|
@ -282,6 +282,8 @@ BasepLoadLibraryAsDatafile(PWSTR Path, LPCWSTR Name, HMODULE *hModule)
|
|||
/* Zero out handle value */
|
||||
*hModule = 0;
|
||||
|
||||
DPRINT("BasepLoadLibraryAsDatafile(%S %S %p)\n", Path, Name, hModule);
|
||||
|
||||
/*Status = RtlDosApplyFileIsolationRedirection_Ustr(TRUE,
|
||||
Name,
|
||||
&dotDLL,
|
||||
|
@ -470,7 +472,7 @@ done:
|
|||
if (FreeString) RtlFreeUnicodeString(&DllName);
|
||||
|
||||
/* Set last error in failure case */
|
||||
if ( !NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
BaseSetLastNTError(Status);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue