fix incorrect reading

This commit is contained in:
Akash Mozumdar 2022-01-23 00:52:15 -07:00
parent 7c9f861926
commit 6ba4f9c909

View File

@ -10,7 +10,7 @@ BOOL WINAPI DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved
{ {
wchar_t filePath[MAX_PATH]; wchar_t filePath[MAX_PATH];
GetModuleFileNameW(hModule, filePath, MAX_PATH); GetModuleFileNameW(hModule, filePath, MAX_PATH);
if (wchar_t* fileName = wcsrchr(filePath, L'\\')) swscanf_s(fileName, L"\\Remove %d Repeated Sentences.dll", &sentenceCacheSize); if (wchar_t* fileName = wcsrchr(filePath, L'\\')) swscanf_s(fileName, L"\\Remove %d Repeated Sentences.xdll", &sentenceCacheSize);
} }
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH: