[PATCH 6/6] kernel32: Invalid console handles for new processes are 0, not INVALID_HANDLE_VALUE.

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Wed Jan 21 02:37:14 CST 2015


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




More information about the wine-devel mailing list