From c8b3cd182c459a0eae10e8685c87332797b1cf33 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sat, 16 May 2020 20:40:38 +0900 Subject: [PATCH] Fix a bug of BGM loop in Windows The info structure must be initialized with the SDL version before calling SDL_GetWindowWMInfo. --- src/win/mako.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/win/mako.cpp b/src/win/mako.cpp index 4e22039..88e6be7 100644 --- a/src/win/mako.cpp +++ b/src/win/mako.cpp @@ -165,6 +165,7 @@ MAKO::MAKO(NACT* parent, const char* playlist) : } SDL_SysWMinfo info; + SDL_VERSION(&info.version); if (!SDL_GetWindowWMInfo(g_window, &info)) { WARNING("SDL_GetWindowWMInfo failed: %s", SDL_GetError()); } else {