From 14aff2d7b7c11cce53f9edd76680061e8051715a Mon Sep 17 00:00:00 2001
From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>
Date: Sat, 4 Feb 2023 01:04:06 +0100
Subject: [PATCH] CCrashHandler: improve readability

Use macro instead of the code directly.
---
 r5dev/tier0/crashhandler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/r5dev/tier0/crashhandler.cpp b/r5dev/tier0/crashhandler.cpp
index 3d4db9c5..84f18826 100644
--- a/r5dev/tier0/crashhandler.cpp
+++ b/r5dev/tier0/crashhandler.cpp
@@ -503,7 +503,7 @@ void CCrashHandler::CreateMessageProcess()
 	PEXCEPTION_RECORD pExceptionRecord = m_pExceptionPointers->ExceptionRecord;
 	PCONTEXT pContextRecord = m_pExceptionPointers->ContextRecord;
 
-	if (pExceptionRecord->ExceptionCode == 0xC0000005 &&
+	if (pExceptionRecord->ExceptionCode == EXCEPTION_ACCESS_VIOLATION &&
 		pExceptionRecord->ExceptionInformation[0] == 8 &&
 		pExceptionRecord->ExceptionInformation[1] != pContextRecord->Rip)
 	{