diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-02-08 21:10:17 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-02-08 21:10:17 +0200 |
commit | 51023747ccc70ae7e792b9735dd65a350b5fbf88 (patch) | |
tree | 02b3c79cb98123fa6f6ef47e57fe56243a790fdb /sal/osl/w32/diagnose.c | |
parent | 46f8635b140699b3d70f2360b840a628a6788ed9 (diff) |
This file is C(89), not C++
Diffstat (limited to 'sal/osl/w32/diagnose.c')
-rw-r--r-- | sal/osl/w32/diagnose.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/w32/diagnose.c b/sal/osl/w32/diagnose.c index 360ef2084d57..b02f20276ceb 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); |