From 2e53931b533403cd9d3db88797a6e7dabfb611c2 Mon Sep 17 00:00:00 2001 From: "bryner%brianryner.com" Date: Sun, 12 Jun 2005 18:27:04 +0000 Subject: [PATCH] Bug 78672, xpfe must not print to console in opt builds. Patch by gautheri@noos.fr, r=mconnor, a=asa. --- toolkit/xre/nsNativeAppSupportWin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toolkit/xre/nsNativeAppSupportWin.cpp b/toolkit/xre/nsNativeAppSupportWin.cpp index 3e8e93db8a5f..7ed23c2d0c2d 100644 --- a/toolkit/xre/nsNativeAppSupportWin.cpp +++ b/toolkit/xre/nsNativeAppSupportWin.cpp @@ -353,7 +353,9 @@ nsNativeAppSupportWin::CheckConsole() { FILE *hf = ::_fdopen( hCrt, "w" ); if ( hf ) { *stdout = *hf; +#ifdef DEBUG ::fprintf( stdout, "stdout directed to dynamic console\n" ); +#endif } } @@ -364,7 +366,9 @@ nsNativeAppSupportWin::CheckConsole() { FILE *hf = ::_fdopen( hCrt, "w" ); if ( hf ) { *stderr = *hf; +#ifdef DEBUG ::fprintf( stderr, "stderr directed to dynamic console\n" ); +#endif } }