Fixed SDL_GetWindowWMInfo() code example

main
Sam Lantinga 2023-11-16 09:55:06 -08:00
parent f61c0f3dc1
commit e0d0d140b2
1 changed files with 1 additions and 1 deletions

View File

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