ntdll: add stub for NtRaiseHardError (try 2)

Austin English austinenglish at gmail.com
Tue May 18 13:28:36 CDT 2010


On Tue, May 18, 2010 at 1:17 PM, Austin English <austinenglish at gmail.com> wrote:
> This time returning STATUS_NOT_IMPLEMENTED instead of E_NOTIMPL, to
> match the rest of ntdll. Thanks to Juan for pointing that out.

Today's not my day...

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/ntdll/error.c b/dlls/ntdll/error.c
index 4c7d5a7..8592957 100644
--- a/dlls/ntdll/error.c
+++ b/dlls/ntdll/error.c
@@ -128,6 +128,19 @@ DWORD WINAPI RtlGetLastWin32Error(void)
     return NtCurrentTeb()->LastErrorValue;
 }
 
+/**********************************************************************
+ *      NtRaiseHardError (NTDLL.@)
+ *
+ * Documented at http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/Error/NtRaiseHardError.html
+ */
+
+NTSYSAPI NTSTATUS WINAPI NtRaiseHardError( NTSTATUS ErrorStatus, ULONG NumberOfParameters,
+                                           PUNICODE_STRING UnicodeStringParameterMask, PVOID *Paramaters,
+                                           HARDERROR_RESPONSE_OPTION ResponseOption, PHARDERROR_RESPONSE Response )
+{
+    return STATUS_NOT_IMPLEMENTED;
+}
+
 /***********************************************************************
  *      RtlSetLastWin32Error (NTDLL.@)
  *      RtlRestoreLastWin32Error (NTDLL.@)
diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 241f3d8..37e0cca 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -275,7 +275,7 @@
 @ stdcall NtQueryVolumeInformationFile(long ptr ptr long long)
 @ stdcall NtQueueApcThread(long ptr long long long)
 @ stdcall NtRaiseException(ptr ptr long)
-@ stub NtRaiseHardError
+@ stdcall NtRaiseHardError(long long ptr ptr long long)
 @ stdcall NtReadFile(long long ptr ptr ptr ptr long ptr ptr)
 @ stdcall NtReadFileScatter(long long ptr ptr ptr ptr long ptr ptr)
 @ stub NtReadRequestData


More information about the wine-patches mailing list