浏览代码

Fix return value of native_midi_detect() under UWP

Lou Yihua 8 年之前
父节点
当前提交
665449a0dc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      winrt/native_midi.cpp

+ 2 - 2
winrt/native_midi.cpp

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