/* INCLUDES *******************************************************************/
#include "smss.h"
+
+#include <pseh/pseh2.h>
+
#define NDEBUG
#include <debug.h>
{
/* It wasn't, so create an error message to print on the screen */
sprintf_nt(MessageBuffer,
- "%wZ program not found - skipping AUTOCHECK\n",
+ "%wZ program not found - skipping AUTOCHECK\r\n",
FileName);
RtlInitAnsiString(&MessageString, MessageBuffer);
if (NT_SUCCESS(RtlAnsiStringToUnicodeString(&Destination,
UNICODE_STRING DestinationString;
/* Print and breakpoint into the debugger */
- DbgPrint("SMSS: Unhandled exception - Status == %x IP == %x\n",
+ DbgPrint("SMSS: Unhandled exception - Status == %x IP == %p\n",
ExceptionInfo->ExceptionRecord->ExceptionCode,
ExceptionInfo->ExceptionRecord->ExceptionAddress);
DbgPrint(" Memory Address: %x Read/Write: %x\n",
Parameters[3] = (ULONG_PTR)ExceptionInfo->ContextRecord;
SmpTerminate(Parameters, 1, RTL_NUMBER_OF(Parameters));
- /* We hould never get here */
+ /* We should never get here */
ASSERT(FALSE);
return EXCEPTION_EXECUTE_HANDLER;
}
NTSTATUS
+__cdecl
_main(IN INT argc,
IN PCHAR argv[],
IN PCHAR envp[],