[win] online-installer: prevent recursive calls in case of error

This commit is contained in:
SimplestStudio
2024-01-18 11:25:56 +02:00
committed by maxkadushkin
parent 3a8fc015e4
commit f9e3648076

View File

@ -27,7 +27,7 @@ wstring StrToWStr(const char* str)
if (outSize > 0)
wstr = pDestBuf;
else
NS_Logger::WriteLog(DEFAULT_ERROR_MESSAGE);
NS_Logger::WriteLog(_T("An error occurred: ") + wstring(_T(__FUNCTION__)));
delete[] pDestBuf;
}
return wstr;