[CSRSRV/CSRSRV2]
[reactos.git] / reactos / subsystems / csr / csrsrv / server.c
index 8b31d06..1210005 100644 (file)
@@ -662,10 +662,10 @@ CsrUnhandledExceptionFilter(IN PEXCEPTION_POINTERS ExceptionInfo)
             RtlInitUnicodeString(&ErrorSource, L"Windows SubSystem");
 
             /* Set the parameters */
-            ErrorParameters[0] = PtrToUlong(&ErrorSource);
+            ErrorParameters[0] = (ULONG_PTR)&ErrorSource;
             ErrorParameters[1] = ExceptionInfo->ExceptionRecord->ExceptionCode;
-            ErrorParameters[2] = PtrToUlong(ExceptionInfo->ExceptionRecord->ExceptionAddress);
-            ErrorParameters[3] = PtrToUlong(ExceptionInfo->ContextRecord);
+            ErrorParameters[2] = (ULONG_PTR)ExceptionInfo->ExceptionRecord->ExceptionAddress;
+            ErrorParameters[3] = (ULONG_PTR)ExceptionInfo->ContextRecord;
 
             /* Bugcheck */
             Status = NtRaiseHardError(STATUS_SYSTEM_PROCESS_TERMINATED,