Source code of Windows XP (NT5)
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

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);
}
}
}