소스 검색

Fixed SDL_GetWindowWMInfo() code example

Sam Lantinga 1 년 전
부모
커밋
e0d0d140b2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/README-migration.md

+ 1 - 1
docs/README-migration.md

@@ -1175,7 +1175,7 @@ The information previously available in SDL_GetWindowWMInfo() is now available a
 ```c
     HWND hwnd = NULL;
     SDL_SysWMinfo info;
-    SDL_VERSION(&info);
+    SDL_VERSION(&info.version);
     if (SDL_GetWindowWMInfo(window, &info) && info.subsystem == SDL_SYSWM_WINDOWS) {
         hwnd = info.info.win.window;
     }