mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 14:08:42 +00:00
Changed: Replace int 3 asm by __debugbreak()
This commit is contained in:
parent
639dfa4a1e
commit
364c4a3178
2 changed files with 5 additions and 6 deletions
|
@ -677,7 +677,7 @@ void CFairMutex::debugEndEnter()
|
||||||
if (_Mutex == (void*)0x88)
|
if (_Mutex == (void*)0x88)
|
||||||
{
|
{
|
||||||
OutputDebugString (str);
|
OutputDebugString (str);
|
||||||
if (entered) __asm int 3;
|
if (entered) __debugbreak();
|
||||||
entered = true;
|
entered = true;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
@ -704,7 +704,7 @@ void CFairMutex::debugLeave()
|
||||||
if (_Mutex == (void*)0x88)
|
if (_Mutex == (void*)0x88)
|
||||||
{
|
{
|
||||||
OutputDebugString (str);
|
OutputDebugString (str);
|
||||||
if (!entered) __asm int 3;
|
if (!entered) __debugbreak();
|
||||||
entered = false;
|
entered = false;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -440,10 +440,9 @@ int main(int argc, char **argv)
|
||||||
if (string(cmdline) == "/crash")
|
if (string(cmdline) == "/crash")
|
||||||
volatile int toto = *(int*)0;
|
volatile int toto = *(int*)0;
|
||||||
if (string(cmdline) == "/break")
|
if (string(cmdline) == "/break")
|
||||||
__asm
|
{
|
||||||
{
|
__debugbreak();
|
||||||
int 3
|
}
|
||||||
};
|
|
||||||
#endif // TEST_CRASH_COUNTER
|
#endif // TEST_CRASH_COUNTER
|
||||||
|
|
||||||
HInstance = hInstance;
|
HInstance = hInstance;
|
||||||
|
|
Loading…
Reference in a new issue