mingw follow-up

This commit is contained in:
nhmall
2023-01-31 01:13:03 -05:00
parent 2c5bbdc0ed
commit 20c7a217ba
+4 -4
View File
@@ -70,10 +70,10 @@ windsound_soundeffect(char *desc, int32_t seid, int32_t volume)
char *mingw_exedir; char *mingw_exedir;
if (!sounddir) { if (!sounddir) {
exedir = mingw_exepath(); mingw_exedir = mingw_exepath();
if (exedir) if (mingw_exedir)
if (strlen(exedir) < sizeof buf - 30) { if (strlen(mingw_exedir) < sizeof buf - 30) {
Strcpy(buf, exedir); Strcpy(buf, mingw_exedir);
sefnflag = 2; /* 2 = use the directory name already in buf */ sefnflag = 2; /* 2 = use the directory name already in buf */
} }
} }