Skip to content

Commit 937e8d5

Browse files
committed
Set hwndTarget to NULL when unregistering raw input
Fixes #13335
1 parent 9af93ab commit 937e8d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/video/windows/SDL_windowsrawinput.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ static DWORD WINAPI WIN_RawInputThread(LPVOID param)
112112
}
113113

114114
devices[0].dwFlags |= RIDEV_REMOVE;
115+
devices[0].hwndTarget = NULL;
115116
devices[1].dwFlags |= RIDEV_REMOVE;
117+
devices[1].hwndTarget = NULL;
116118
RegisterRawInputDevices(devices, count, sizeof(devices[0]));
117119

118120
DestroyWindow(window);

0 commit comments

Comments
 (0)