mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 14:34:51 +00:00
hidclass.sys: Make sure a desktop is created for the driver process.
This was previously automatically done when user32 was loaded, but since the move of __wine_send_input to win32u, we do not need to load it any more. Make sure we have a desktop or WM_INPUT messages won't be sent by wineserver.
This commit is contained in:
parent
c28258039b
commit
5225aabd07
|
@ -599,6 +599,10 @@ NTSTATUS WINAPI HidRegisterMinidriver(HID_MINIDRIVER_REGISTRATION *registration)
|
|||
{
|
||||
minidriver *driver;
|
||||
|
||||
/* make sure we have a window station and a desktop, we need one to send input */
|
||||
if (!GetProcessWindowStation())
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
|
||||
if (!(driver = calloc(1, sizeof(*driver))))
|
||||
return STATUS_NO_MEMORY;
|
||||
|
||||
|
|
Loading…
Reference in a new issue