Fix invalid sscanf format in DownloadManager

function DownloadManager::searchForIncompleteDownloads
This commit is contained in:
bitscher 2022-08-28 22:20:52 -07:00
parent 39a779cffe
commit d2f6bf6a3e

View file

@ -581,7 +581,7 @@ void DownloadManager::searchForIncompleteDownloads()
uint64 titleId;
uint32 version;
std::string name = p.path().filename().generic_string();
if( sscanf(name.c_str(), "cemu_% " PRIx64 "_v%u", &titleId, &version) != 2)
if( sscanf(name.c_str(), "cemu_%" PRIx64 "_v%u", &titleId, &version) != 2)
continue;
std::unique_lock<std::recursive_mutex> _l(m_mutex);
for (auto& itr : m_ticketCache)