Fixed SDL_GetWindowWMInfo() code example

This commit is contained in:
Sam Lantinga committed 2023-11-16 09:55:06 -08:00
1 parent f61c0f3dc1
commit e0d0d140b2
1 file changed
+1 -1
+1 -1
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;
}