We need to ignore STATUS_OBJECT_TYPE_MISMATCH errors too when setting

the process console.
This commit is contained in:
Alexandre Julliard 2003-08-19 03:46:24 +00:00
parent 4ea0442229
commit 9e9e3a9ce5

View file

@ -237,7 +237,8 @@ static int set_process_console( struct process *process, struct thread *parent_t
}
else reply->hstdin = reply->hstdout = reply->hstderr = 0;
/* some handles above may have been invalid; this is not an error */
if (get_error() == STATUS_INVALID_HANDLE) clear_error();
if (get_error() == STATUS_INVALID_HANDLE ||
get_error() == STATUS_OBJECT_TYPE_MISMATCH) clear_error();
return 1;
}