shithub: choc

Download patch

ref: b63dc8941ddde045b9d8b498d618452ea0846f42
parent: 5607efe36e46f5cc181fd294ce275909139795b5
author: Alex Mayfield <alexmax2742@gmail.com>
date: Tue Feb 21 15:29:55 EST 2017

Wrap midi_server_registered check in _WIN32

--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -1030,7 +1030,11 @@
         return;
     }
 
+#if defined(_WIN32)
     if (handle == NULL && !midi_server_registered)
+#else
+    if (handle == NULL)
+#endif
     {
         return;
     }