fixing some bugs

This commit is contained in:
jakani24
2024-05-21 18:51:27 +02:00
parent 8a9f31623a
commit 0fe063bd9b
25 changed files with 166 additions and 205 deletions

View File

@@ -441,7 +441,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
std::wstring selectedFile = ofn.lpstrFile; // Use std::wstring for wide characters
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
std::string narrowSelectedFile = converter.to_bytes(selectedFile);
std::thread(scan_file, hWndTextField, narrowSelectedFile, 0).detach();
std::thread(scan_file, hWndTextField, narrowSelectedFile, 1).detach();
}
}