diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index 09ea91f7..54276de7 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -11398,7 +11398,6 @@ BOOL CheckWord (char* search) wchar_t path[TC_MAX_PATH]; wchar_t tmp[TC_MAX_PATH]; wchar_t destFileName[TC_MAX_PATH] = L"password1000000.txt"; - wchar_t *destPathName; if (GetModuleFileName (NULL, path, ARRAYSIZE (path)) == 0) { @@ -11421,7 +11420,7 @@ BOOL CheckWord (char* search) } StringCbCatW(tmp, sizeof(tmp), destFileName); - std::ifstream fin(destPathName); + std::ifstream fin(tmp); std::copy(std::istream_iterator(fin), std::istream_iterator(), std::inserter(*this, end())); }