summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-05-27 15:10:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-05-27 15:10:10 +0300
commit7bbc2d854a71274048390d2f5ce5b64d9f132a28 (patch)
tree16dc6586a123b58eaf87a5fc33d20068e02a0190
parent8e9f43cf44fcc1d55b8dabce66a4e83e5ffa54cf (diff)
crash fix
-rw-r--r--src/mir_core/src/Windows/langpack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/Windows/langpack.cpp b/src/mir_core/src/Windows/langpack.cpp
index fbce30fd64..00b7d996e1 100644
--- a/src/mir_core/src/Windows/langpack.cpp
+++ b/src/mir_core/src/Windows/langpack.cpp
@@ -489,7 +489,7 @@ char* LangPackTranslateString(const MUUID *pUuid, const char *szEnglish, const i
// try to find the exact match, otherwise the first entry will be returned
if (pUuid) {
for (LangPackEntry *p = entry->pNext; p != nullptr; p = p->pNext) {
- if (*p->pMuuid == *pUuid) {
+ if (p->pMuuid && *p->pMuuid == *pUuid) {
entry = p;
break;
}