Commit 9e9e3a9c authored by Alexandre Julliard's avatar Alexandre Julliard

We need to ignore STATUS_OBJECT_TYPE_MISMATCH errors too when setting

the process console.
parent 4ea04422
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment