Fix Windows build

This commit is contained in:
derselbst 2020-10-04 13:32:38 +02:00
parent abc89d7d6c
commit 66d916a34a
2 changed files with 2 additions and 2 deletions

View file

@ -422,7 +422,7 @@ new_fluid_waveout_audio_driver(fluid_settings_t *settings, fluid_synth_t *synth)
if(errCode != MMSYSERR_NOERROR)
{
FLUID_LOG(FLUID_ERR, "Failed to open waveOut device: '%s'", fluid_waveout_error());
FLUID_LOG(FLUID_ERR, "Failed to open waveOut device: '%s'", fluid_waveout_error(errCode));
break;
}

View file

@ -1697,7 +1697,7 @@ fluid_long_long_t fluid_file_tell(FILE* f)
// not thread-safe!
char* fluid_get_windows_error(void)
{
static const char err[1024];
static char err[1024];
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
NULL,