--- mstools/samples/playsnd/file.c 2018/08/09 18:21:49 1.1 +++ mstools/samples/playsnd/file.c 2018/08/09 18:23:54 1.1.1.2 @@ -44,7 +44,7 @@ void PlayFile() ofn.lpTemplateName = NULL; - dprintf3("Calling GetOpenFileName"); + dprintf3(("Calling GetOpenFileName")); if (GetOpenFileName(&ofn)) { dwFlags = SND_FILENAME; @@ -57,7 +57,7 @@ void PlayFile() if (bNoWait) dwFlags |= SND_NOWAIT; - if (!PlaySound(szFileName, NULL, dwFlags)) { + if (!PlaySound(szFileName, NULL, dwFlags | bNoDefault)) { Error("Failed to play file: %s", szFileName); } }