소스 검색

Set hwndTarget to NULL when unregistering raw input

Fixes https://github.com/libsdl-org/SDL/issues/13335
Sam Lantinga 2 달 전
부모
커밋
937e8d55a4
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/video/windows/SDL_windowsrawinput.c

+ 2 - 0
src/video/windows/SDL_windowsrawinput.c

@@ -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);