mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 17:01:49 +00:00
Also raise hard error when dll was not found.
svn path=/trunk/; revision=36694
This commit is contained in:
parent
a8bc8a5bcf
commit
499b067bc4
1 changed files with 15 additions and 1 deletions
|
@ -1358,7 +1358,16 @@ LdrpGetOrLoadModule(PWCHAR SearchPath,
|
|||
}
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
ULONG ErrorResponse;
|
||||
ULONG_PTR ErrorParameter = (ULONG_PTR)&DllName;
|
||||
|
||||
DPRINT1("failed to load %wZ\n", &DllName);
|
||||
NtRaiseHardError(STATUS_DLL_NOT_FOUND,
|
||||
1,
|
||||
1,
|
||||
&ErrorParameter,
|
||||
OptionOk,
|
||||
&ErrorResponse);
|
||||
}
|
||||
}
|
||||
RtlFreeUnicodeString (&DllName);
|
||||
|
@ -1384,7 +1393,12 @@ RtlpRaiseImportNotFound(CHAR *FuncName, ULONG Ordinal, PUNICODE_STRING DllName)
|
|||
RtlAnsiStringToUnicodeString(&ProcName, &ProcNameAnsi, TRUE);
|
||||
ErrorParameters[0] = (ULONG_PTR)&ProcName;
|
||||
ErrorParameters[1] = (ULONG_PTR)DllName;
|
||||
NtRaiseHardError(STATUS_ENTRYPOINT_NOT_FOUND, 2, 3, ErrorParameters, OptionOk, &ErrorResponse);
|
||||
NtRaiseHardError(STATUS_ENTRYPOINT_NOT_FOUND,
|
||||
2,
|
||||
3,
|
||||
ErrorParameters,
|
||||
OptionOk,
|
||||
&ErrorResponse);
|
||||
RtlFreeUnicodeString(&ProcName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue