summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-09-21 18:55:51 +0200
committerGitHub <noreply@github.com>2020-09-21 18:55:51 +0200
commitbde17bb3954354510a5a1ffb6e5b7b8381a16470 (patch)
tree17316b0f2f789947f024fffb00d27ecad3b43f0c /src/core
parentFix build (renamed var name in definiton file) (diff)
parentfix enum edditing effects for oal target and small improvements (diff)
downloadre3-bde17bb3954354510a5a1ffb6e5b7b8381a16470.tar
re3-bde17bb3954354510a5a1ffb6e5b7b8381a16470.tar.gz
re3-bde17bb3954354510a5a1ffb6e5b7b8381a16470.tar.bz2
re3-bde17bb3954354510a5a1ffb6e5b7b8381a16470.tar.lz
re3-bde17bb3954354510a5a1ffb6e5b7b8381a16470.tar.xz
re3-bde17bb3954354510a5a1ffb6e5b7b8381a16470.tar.zst
re3-bde17bb3954354510a5a1ffb6e5b7b8381a16470.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Frontend.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index cdecb8b4..9c33d48a 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -1121,15 +1121,19 @@ CMenuManager::DrawStandardMenus(bool drawCurrScreen)
rightText = TheText.Get("FEA_ADP");
else {
char* provider = DMAudio.Get3DProviderName(m_nPrefsAudio3DProviderIndex);
-
- if (!strcmp(strupr(provider), "DIRECTSOUND3D HARDWARE SUPPORT")) {
- strcpy(provider, "DSOUND3D HARDWARE SUPPORT");
+ if (provider != NULL) {
+ if (!strcmp(strupr(provider), "DIRECTSOUND3D HARDWARE SUPPORT")) {
+ strcpy(provider, "DSOUND3D HARDWARE SUPPORT");
+ }
+ else if (!strcmp(strupr(provider), "DIRECTSOUND3D SOFTWARE EMULATION")) {
+ strcpy(provider, "DSOUND3D SOFTWARE EMULATION");
+ }
+ AsciiToUnicode(provider, unicodeTemp);
+ rightText = unicodeTemp;
}
- else if (!strcmp(strupr(provider), "DIRECTSOUND3D SOFTWARE EMULATION")) {
- strcpy(provider, "DSOUND3D SOFTWARE EMULATION");
+ else {
+ rightText = TheText.Get("not defined");
}
- AsciiToUnicode(provider, unicodeTemp);
- rightText = unicodeTemp;
}
break;
case MENUACTION_SPEAKERCONF: {