Added error return checks to MessageBeep();

This commit is contained in:
Pietro Gagliardi 2014-08-25 01:44:14 -04:00
parent f9c5c41c77
commit 95c42353fb
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@ void textfieldSetAndShowInvalidBalloonTip(HWND hwnd, WCHAR *text)
ti.ttiIcon = TTI_ERROR;
if (SendMessageW(hwnd, EM_SHOWBALLOONTIP, 0, (LPARAM) (&ti)) == FALSE)
xpanic("error showing TextField.Invalid() balloon tip", GetLastError());
MessageBeep(0xFFFFFFFF); // TODO can this return an error?
if (MessageBeep(0xFFFFFFFF) == 0)
xpanic("error beeping in response to TextField.Invalid()", GetLastError());
}
void textfieldHideInvalidBalloonTip(HWND hwnd)