diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-09-21 18:55:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 18:55:51 +0200 |
commit | bde17bb3954354510a5a1ffb6e5b7b8381a16470 (patch) | |
tree | 17316b0f2f789947f024fffb00d27ecad3b43f0c /src/core | |
parent | Fix build (renamed var name in definiton file) (diff) | |
parent | fix enum edditing effects for oal target and small improvements (diff) | |
download | re3-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.cpp | 18 |
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: { |