[ros-diffs] [sir_richard] 49732: [CRT]: _assert should use DbgRaiseAssertionFailure which is (a) correct and (b) portable, instead of __debugbreak.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Tue Nov 23 16:36:55 UTC 2010


Author: sir_richard
Date: Tue Nov 23 16:36:54 2010
New Revision: 49732

URL: http://svn.reactos.org/svn/reactos?rev=49732&view=rev
Log:
[CRT]: _assert should use DbgRaiseAssertionFailure which is (a) correct and (b) portable, instead of __debugbreak.

Modified:
    trunk/reactos/lib/sdk/crt/misc/assert.c

Modified: trunk/reactos/lib/sdk/crt/misc/assert.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/misc/assert.c?rev=49732&r1=49731&r2=49732&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/misc/assert.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/misc/assert.c [iso-8859-1] Tue Nov 23 16:36:54 2010
@@ -67,6 +67,6 @@
     /* Does the user want to debug? */
     if (iResult == IDRETRY)
     {
-        __debugbreak();
+        DbgRaiseAssertionFailure();
     }
 }




More information about the Ros-diffs mailing list