From 7ef9d9ef63b3a27ab0b45c7810a08d9163085d6d Mon Sep 17 00:00:00 2001 From: "mr.exodia" Date: Sat, 8 Feb 2014 20:10:37 +0100 Subject: [PATCH] - fixed a switch statement - fixed an anti-debug trick using the DBG_PRINTEXCEPTION_C (0x40010006) --- TitanEngine/TitanEngine.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TitanEngine/TitanEngine.cpp b/TitanEngine/TitanEngine.cpp index 8af35e8..565cf8d 100644 --- a/TitanEngine/TitanEngine.cpp +++ b/TitanEngine/TitanEngine.cpp @@ -16752,6 +16752,8 @@ __declspec(dllexport) void TITCALL DebugLoop() DBGCustomHandler->chOutputDebugString = NULL; } } + //http://maximumcrack.wordpress.com/2009/06/22/outputdebugstring-awesomeness/ (the final advice is incorrect, but still helpful) + DBGCode = DBG_EXCEPTION_NOT_HANDLED; //pass exception to debuggee } break; @@ -17785,7 +17787,7 @@ __declspec(dllexport) void TITCALL DebugLoop() } break; - case STATUS_NONCONTINUABLE_EXCEPTION; + case STATUS_NONCONTINUABLE_EXCEPTION: { DBGCode = DBG_EXCEPTION_NOT_HANDLED; if(DBGCustomHandler->chNonContinuableException != NULL)