Author: osiejka
Date: Sat Mar 26 23:36:56 2011
New Revision: 51167
URL:
http://svn.reactos.org/svn/reactos?rev=51167&view=rev
Log:
[NTDLL]
- Fix "entry point not found" harderror parameters. Patch by Thomas Faber
See issue #5983 for more details.
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] Sat Mar 26 23:36:56 2011
@@ -1350,7 +1350,7 @@
ULONG ErrorResponse;
ULONG_PTR ErrorParameters[2];
ANSI_STRING ProcNameAnsi;
- UNICODE_STRING ProcName;
+ ANSI_STRING DllNameAnsi;
CHAR Buffer[8];
if (!FuncName)
@@ -1360,16 +1360,16 @@
}
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