On 21/01/15 08:51, Erich E. Hoover wrote:
Several applications rely on the TEB value for fresh invalid console handles to be zero instead of INVALID_HANDLE_VALUE (fixes Bug #36216 and Bug #37914).
+····if·(!params->hStdOutput·||·params->hStdOutput·==·INVALID_HANDLE_VALUE) +········params->hStdOutput·=·0;
The !params->hStdOutput check is redundant since it's already 0. Applies to the other places as well.
Best Regards Alistair Leslie-Hughes