[Libreoffice-commits] .: sal/osl

Tor Lillqvist tml at kemper.freedesktop.org
Tue Feb 8 11:11:18 PST 2011


 sal/osl/w32/diagnose.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit c7adfc2fc0a28fc2881c9a94a432ac1387d9c05a
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Tue Feb 8 21:10:17 2011 +0200

    This file is C(89), not C++

diff --git a/sal/osl/w32/diagnose.c b/sal/osl/w32/diagnose.c
index fb97a91..a95b107 100644
--- a/sal/osl/w32/diagnose.c
+++ b/sal/osl/w32/diagnose.c
@@ -130,6 +130,7 @@ sal_Bool SAL_CALL osl_assertFailedLine(const sal_Char* pszFileName, sal_Int32 nL
     else if ( !getenv( "DISABLE_SAL_DBGBOX" ) )
     {
         TCHAR	szBoxMessage[1024];
+        int     nCode;
 
         /* active popup window for the current thread */
         hWndParent = GetActiveWindow();
@@ -147,7 +148,7 @@ sal_Bool SAL_CALL osl_assertFailedLine(const sal_Char* pszFileName, sal_Int32 nL
         _snprintf(szBoxMessage, sizeof(szBoxMessage)-1, "%s\n( Yes=Abort / No=Ignore / Cancel=Debugger )",
                    szMessage);
         
-        int nCode = MessageBox(hWndParent, szBoxMessage, "Assertion Failed!", nFlags);
+        nCode = MessageBox(hWndParent, szBoxMessage, "Assertion Failed!", nFlags);
  
         if (nCode == IDYES)
             FatalExit(-1);


More information about the Libreoffice-commits mailing list