mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
389 B
21 lines
389 B
void ShowError(HRESULT hr,
|
|
const String &message)
|
|
{
|
|
LOG_FUNCTION(ShowError);
|
|
|
|
if(hr==E_FAIL)
|
|
{
|
|
popup.Error(Win::GetDesktopWindow(),message);
|
|
}
|
|
else
|
|
{
|
|
if(message.empty())
|
|
{
|
|
popup.Error(Win::GetDesktopWindow(),GetErrorMessage(hr));
|
|
}
|
|
else
|
|
{
|
|
popup.Error(Win::GetDesktopWindow(),hr,message);
|
|
}
|
|
}
|
|
}
|