From 28fc65e47992a068a73f3b6332ba9c82e4716bc8 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 25 Oct 2019 18:13:07 +0200 Subject: Windows: Fix test of GetPrivateProfileString output since this function discards double quotation marks --- src/Common/BootEncryption.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common/BootEncryption.cpp') diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp index 16fac487..ed1237c1 100644 --- a/src/Common/BootEncryption.cpp +++ b/src/Common/BootEncryption.cpp @@ -3161,7 +3161,7 @@ namespace VeraCrypt szPathParam += L"\""; if ( (0 < GetPrivateProfileStringW (L"SetupConfig", L"ReflectDrivers", L"", wszBuffer, ARRAYSIZE (wszBuffer), szSetupconfigLocation)) - && (_wcsicmp (wszBuffer, szPathParam.c_str()) == 0) + && (_wcsicmp (wszBuffer, szInstallPath) == 0) ) { bSkipWrite = true; -- cgit v1.2.3