1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows: Remove unused variable

This commit is contained in:
Mounir IDRASSI
2022-01-16 16:50:40 +01:00
parent 8eada1f8c6
commit 7314bd19f9

View File

@@ -11398,7 +11398,6 @@ BOOL CheckWord (char* search)
wchar_t path[TC_MAX_PATH]; wchar_t path[TC_MAX_PATH];
wchar_t tmp[TC_MAX_PATH]; wchar_t tmp[TC_MAX_PATH];
wchar_t destFileName[TC_MAX_PATH] = L"password1000000.txt"; wchar_t destFileName[TC_MAX_PATH] = L"password1000000.txt";
wchar_t *destPathName;
if (GetModuleFileName (NULL, path, ARRAYSIZE (path)) == 0) if (GetModuleFileName (NULL, path, ARRAYSIZE (path)) == 0)
{ {
@@ -11421,7 +11420,7 @@ BOOL CheckWord (char* search)
} }
StringCbCatW(tmp, sizeof(tmp), destFileName); StringCbCatW(tmp, sizeof(tmp), destFileName);
std::ifstream fin(destPathName); std::ifstream fin(tmp);
std::copy(std::istream_iterator<std::string>(fin), std::istream_iterator<std::string>(), std::copy(std::istream_iterator<std::string>(fin), std::istream_iterator<std::string>(),
std::inserter(*this, end())); std::inserter(*this, end()));
} }