mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[NTDLL]
- Fix "entry point not found" harderror parameters. Patch by Thomas Faber See issue #5983 for more details. svn path=/trunk/; revision=51167
This commit is contained in:
@@ -1350,7 +1350,7 @@ RtlpRaiseImportNotFound(CHAR *FuncName, ULONG Ordinal, PUNICODE_STRING DllName)
|
||||
ULONG ErrorResponse;
|
||||
ULONG_PTR ErrorParameters[2];
|
||||
ANSI_STRING ProcNameAnsi;
|
||||
UNICODE_STRING ProcName;
|
||||
ANSI_STRING DllNameAnsi;
|
||||
CHAR Buffer[8];
|
||||
|
||||
if (!FuncName)
|
||||
@@ -1360,16 +1360,16 @@ RtlpRaiseImportNotFound(CHAR *FuncName, ULONG Ordinal, PUNICODE_STRING DllName)
|
||||
}
|
||||
|
||||
RtlInitAnsiString(&ProcNameAnsi, FuncName);
|
||||
RtlAnsiStringToUnicodeString(&ProcName, &ProcNameAnsi, TRUE);
|
||||
ErrorParameters[0] = (ULONG_PTR)&ProcName;
|
||||
ErrorParameters[1] = (ULONG_PTR)DllName;
|
||||
RtlUnicodeStringToAnsiString(&DllNameAnsi, DllName, TRUE);
|
||||
ErrorParameters[0] = (ULONG_PTR)&ProcNameAnsi;
|
||||
ErrorParameters[1] = (ULONG_PTR)&DllNameAnsi;
|
||||
NtRaiseHardError(STATUS_ENTRYPOINT_NOT_FOUND,
|
||||
2,
|
||||
3,
|
||||
ErrorParameters,
|
||||
OptionOk,
|
||||
&ErrorResponse);
|
||||
RtlFreeUnicodeString(&ProcName);
|
||||
RtlFreeAnsiString(&DllNameAnsi);
|
||||
}
|
||||
|
||||
static NTSTATUS
|
||||
|
||||
Reference in New Issue
Block a user