/* INCLUDES *******************************************************************/
#include "smss.h"
+
+#include <pseh/pseh2.h>
+
#define NDEBUG
#include <debug.h>
if (!NT_SUCCESS(Status))
{
/* This is a pretty bad failure. ASSERT on checked builds and exit */
- ASSERTMSG(NT_SUCCESS(Status), "RtlCreateProcessParameters");
+ ASSERTMSG("RtlCreateProcessParameters", NT_SUCCESS(Status));
DPRINT1("SMSS: RtlCreateProcessParameters failed for %wZ - Status == %lx\n",
FileName, Status);
return Status;
{
/* 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[],