From 20c7a217ba458fcc38a29a1f7a86d9c2055dbd38 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 31 Jan 2023 01:13:03 -0500 Subject: [PATCH] mingw follow-up --- sound/windsound/windsound.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/windsound/windsound.c b/sound/windsound/windsound.c index 576a38007..580e21235 100644 --- a/sound/windsound/windsound.c +++ b/sound/windsound/windsound.c @@ -70,10 +70,10 @@ windsound_soundeffect(char *desc, int32_t seid, int32_t volume) char *mingw_exedir; if (!sounddir) { - exedir = mingw_exepath(); - if (exedir) - if (strlen(exedir) < sizeof buf - 30) { - Strcpy(buf, exedir); + mingw_exedir = mingw_exepath(); + if (mingw_exedir) + if (strlen(mingw_exedir) < sizeof buf - 30) { + Strcpy(buf, mingw_exedir); sefnflag = 2; /* 2 = use the directory name already in buf */ } } -- 2.50.1