Changed some CRT functions by WinApi functions.

This commit is contained in:
2023-11-29 01:58:38 +03:00
parent a6d6527ff3
commit 6b592d78c1
2 changed files with 6 additions and 3 deletions

View File

@@ -155,7 +155,9 @@ bool GetLatestRelease(const std::wstring& urn)
std::string jerr = picojson::get_last_error();
if (!jerr.empty())
{
std::cout << jerr << std::endl;
logger.Out(L"[UPDT] %s(%d): Error while parsing JSON object: %s", TEXT(__FUNCTION__), __LINE__, ConvertUtf8ToWide(jerr));
MessageBoxW(NULL, L"Error while parsing JSON object!", szTitle, MB_OK | MB_ICONERROR);
ret = false;
}