Author: tkreuzer
Date: Wed Oct 8 09:37:10 2008
New Revision: 36694
URL:
http://svn.reactos.org/svn/reactos?rev=36694&view=rev
Log:
Also raise hard error when dll was not found.
Modified:
trunk/reactos/dll/ntdll/ldr/utils.c
Modified: trunk/reactos/dll/ntdll/ldr/utils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/utils.c?rev=…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/utils.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/utils.c [iso-8859-1] Wed Oct 8 09:37:10 2008
@@ -1358,7 +1358,16 @@
}
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 @@
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);
}