Log error code as hex

This commit is contained in:
Hannah von Reth 2020-10-21 14:51:43 +02:00 committed by Kevin Ottens
parent 44175aca94
commit 8796f25994
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -341,7 +341,7 @@ void Utility::UnixTimeToLargeIntegerFiletime(time_t t, LARGE_INTEGER *hundredNSe
QString Utility::formatWinError(long errorCode)
{
return QStringLiteral("WindowsError: %1: %2").arg(QString::number(errorCode), QString::fromWCharArray(_com_error(errorCode).ErrorMessage()));
return QStringLiteral("WindowsError: %1: %2").arg(QString::number(errorCode, 16), QString::fromWCharArray(_com_error(errorCode).ErrorMessage()));
}
} // namespace OCC