From 364c4a3178306958286873b3b45d8b781c97bd2a Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 8 Nov 2015 13:25:36 +0100 Subject: [PATCH] Changed: Replace int 3 asm by __debugbreak() --- code/nel/src/misc/mutex.cpp | 4 ++-- code/ryzom/client/src/client.cpp | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/code/nel/src/misc/mutex.cpp b/code/nel/src/misc/mutex.cpp index 8135d954f..af0e850ab 100644 --- a/code/nel/src/misc/mutex.cpp +++ b/code/nel/src/misc/mutex.cpp @@ -677,7 +677,7 @@ void CFairMutex::debugEndEnter() if (_Mutex == (void*)0x88) { OutputDebugString (str); - if (entered) __asm int 3; + if (entered) __debugbreak(); entered = true; } */ @@ -704,7 +704,7 @@ void CFairMutex::debugLeave() if (_Mutex == (void*)0x88) { OutputDebugString (str); - if (!entered) __asm int 3; + if (!entered) __debugbreak(); entered = false; } */ diff --git a/code/ryzom/client/src/client.cpp b/code/ryzom/client/src/client.cpp index 70e5a36c4..82044e0e1 100644 --- a/code/ryzom/client/src/client.cpp +++ b/code/ryzom/client/src/client.cpp @@ -440,10 +440,9 @@ int main(int argc, char **argv) if (string(cmdline) == "/crash") volatile int toto = *(int*)0; if (string(cmdline) == "/break") - __asm - { - int 3 - }; + { + __debugbreak(); + } #endif // TEST_CRASH_COUNTER HInstance = hInstance;