VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-10-25 16:13:07 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-10-25 16:25:29 (GMT)
commit28fc65e47992a068a73f3b6332ba9c82e4716bc8 (patch)
tree8871ab2567a6a2d21d04c12116bf6c5eb8779569
parent343d1a95dc711f0eba5d858967e57ad583b5aa0c (diff)
downloadVeraCrypt-28fc65e47992a068a73f3b6332ba9c82e4716bc8.zip
VeraCrypt-28fc65e47992a068a73f3b6332ba9c82e4716bc8.tar.gz
Windows: Fix test of GetPrivateProfileString output since this function discards double quotation marks
-rw-r--r--src/Common/BootEncryption.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp
index 16fac48..ed1237c 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;