Browse Source

Fix return value of native_midi_detect() under UWP

Lou Yihua 7 years ago
parent
commit
665449a0dc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      winrt/native_midi.cpp

+ 2 - 2
winrt/native_midi.cpp

@@ -212,9 +212,9 @@ int native_midi_detect()
 	if (synthesizer)
 	{
 		delete synthesizer;
-		return 0;
+		return 1;
 	}
-	return 1;
+	return 0;
 }
 
 NativeMidiSong *native_midi_loadsong(const char *midifile)