ok, you suggest to initialize orig_stderr. initialize with what ? what value of orig_stderr should mean
a) "no stderr redirection requested, return GetStdHandle (STD_ERROR_HANDLE)" b) "stderr redirection was requested, return orig_stderr" as Matthias Andree said, neither NULL, nor INVALID_HANDLE are good for "a)", those might me special cases and mean something different in terms of handles but if you see better solution, just provide it, I do not mind. 2013/12/8 Gert Doering <g...@greenie.muc.de>: > Hi, > > On Sun, Dec 08, 2013 at 11:27:50AM +0600, ???? ??????? wrote: >> Ok, your suggestion? > > "initialize orig_stderr"? > > gert > -- > USENET is *not* the non-clickable part of WWW! > //www.muc.de/~gert/ > Gert Doering - Munich, Germany g...@greenie.muc.de > fax: +49-89-35655025 g...@net.informatik.tu-muenchen.de