Changeset 3381


Ignore:
Timestamp:
2002-08-21T14:44:55+12:00 (22 years ago)
Author:
sjboddie
Message:

Where cerr is redirected with cerr.rdbuf(errout.rdbuf()) it needs to be
restored before the end of program execution. This was causing a runtime
error on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/cgiwrapper.cpp

    r3026 r3381  
    657657#else
    658658      // can't do this anymore according to c++ standard...
    659       //cerr = errout;
     659      // cerr = errout;
    660660      // ... but can do this instead
    661661      cerr.rdbuf(errout.rdbuf());
     
    677677    errout.close ();
    678678      }
    679     }
     679
     680#if !defined(__WIN32__) || !defined(GSDL_USE_IOS_H)
     681    // restore the cerr buffer
     682    cerr.rdbuf(errbuf);
     683#endif
     684    }
     685
    680686    // there was an error, output the error page
    681687    if (!errorpage.empty()) {
Note: See TracChangeset for help on using the changeset viewer.