# SDL: Fixed SDL\_GetWindowWMInfo() code example

**URL:** <https://discourse.libsdl.org/t/sdl-fixed-sdl-getwindowwminfo-code-example/47401>\
**Category:** SDL Commits\
**Created:** [November 16, 2023, 5:56pm UTC](https://discourse.libsdl.org/t/sdl-fixed-sdl-getwindowwminfo-code-example/47401 "2023-11-16T17:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [November 16, 2023, 5:56pm UTC](https://discourse.libsdl.org/t/sdl-fixed-sdl-getwindowwminfo-code-example/47401/1 "2023-11-16T17:56:02Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/e0d0d140b224151ae363c9aaaa7c1cdc264c9a4e>

````diff
From e0d0d140b224151ae363c9aaaa7c1cdc264c9a4e Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 16 Nov 2023 09:55:06 -0800
Subject: [PATCH] Fixed SDL_GetWindowWMInfo() code example

---
 docs/README-migration.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/README-migration.md b/docs/README-migration.md
index a93074cd67c6..f34119252a8a 100644
--- a/docs/README-migration.md
+++ b/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;
     }

````
