mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user