mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Set hwndTarget to NULL when unregistering raw input
Fixes https://github.com/libsdl-org/SDL/issues/13335
(cherry picked from commit 937e8d55a4
)
This commit is contained in:
@@ -112,7 +112,9 @@ static DWORD WINAPI WIN_RawInputThread(LPVOID param)
|
||||
}
|
||||
|
||||
devices[0].dwFlags |= RIDEV_REMOVE;
|
||||
devices[0].hwndTarget = NULL;
|
||||
devices[1].dwFlags |= RIDEV_REMOVE;
|
||||
devices[1].hwndTarget = NULL;
|
||||
RegisterRawInputDevices(devices, count, sizeof(devices[0]));
|
||||
|
||||
DestroyWindow(window);
|
||||
|
Reference in New Issue
Block a user