浏览代码

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;
     }