kernel32: Fix user handle conversion in GetConsoleWindow().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-08-20 21:44:20 +02:00
parent d02962996a
commit 13ea90d80f

View file

@ -194,7 +194,7 @@ HWND WINAPI GetConsoleWindow(void)
ret = DeviceIoControl( RtlGetCurrentPeb()->ProcessParameters->ConsoleHandle,
IOCTL_CONDRV_GET_INPUT_INFO, NULL, 0, &info, sizeof(info), NULL, NULL );
return ret ? (HWND)info.win : NULL;
return ret ? wine_server_ptr_handle(info.win) : NULL;
}