kernel32: Fix user handle conversion in GetConsoleWindow().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d02962996a
commit
13ea90d80f
|
@ -194,7 +194,7 @@ HWND WINAPI GetConsoleWindow(void)
|
||||||
|
|
||||||
ret = DeviceIoControl( RtlGetCurrentPeb()->ProcessParameters->ConsoleHandle,
|
ret = DeviceIoControl( RtlGetCurrentPeb()->ProcessParameters->ConsoleHandle,
|
||||||
IOCTL_CONDRV_GET_INPUT_INFO, NULL, 0, &info, sizeof(info), NULL, NULL );
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue