Commit 13ea90d8 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Fix user handle conversion in GetConsoleWindow().

parent d0296299
...@@ -194,7 +194,7 @@ HWND WINAPI GetConsoleWindow(void) ...@@ -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;
} }
......
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