ntdll: Unconditionally forward console events to kernelbase.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Jacek Caban 2023-09-06 10:07:51 +02:00 committed by Alexandre Julliard
parent e668cf356b
commit b228e3df60

View file

@ -3217,9 +3217,7 @@ done:
*/
NTSTATUS WINAPI __wine_ctrl_routine( void *arg )
{
DWORD ret = 0;
if (pCtrlRoutine && NtCurrentTeb()->Peb->ProcessParameters->ConsoleHandle) ret = pCtrlRoutine( arg );
DWORD ret = pCtrlRoutine ? pCtrlRoutine( arg ) : 0;
RtlExitUserThread( ret );
}