VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Dlgcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r--src/Common/Dlgcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index e0af53fd..e6686c2c 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -2515,7 +2515,7 @@ void InitHelpFileName (void)
// Primary file name
if (strcmp (GetPreferredLangId(), "en") == 0
- || GetPreferredLangId() == NULL)
+ || strlen(GetPreferredLangId()) == 0)
{
StringCbCatA (szHelpFile, sizeof(szHelpFile), "VeraCrypt User Guide.pdf");
}
@@ -2532,7 +2532,7 @@ void InitHelpFileName (void)
{
++lpszTmp;
*lpszTmp = 0;
- StringCbCopyA (szHelpFile2, sizeof(szHelpFile2), "VeraCrypt User Guide.pdf");
+ StringCbCatA (szHelpFile2, sizeof(szHelpFile2), "VeraCrypt User Guide.pdf");
}
}
}