From a5df5d981a79c5da3913f48e89e4bdbaaec7dc37 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 3 Dec 2014 00:11:38 +0100 Subject: Windows: correct issue in displaying PDF of User Guide. --- src/Common/Dlgcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Common') 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"); } } } -- cgit v1.2.3