Added error return checks to MessageBeep();
This commit is contained in:
parent
f9c5c41c77
commit
95c42353fb
|
@ -116,7 +116,8 @@ void textfieldSetAndShowInvalidBalloonTip(HWND hwnd, WCHAR *text)
|
||||||
ti.ttiIcon = TTI_ERROR;
|
ti.ttiIcon = TTI_ERROR;
|
||||||
if (SendMessageW(hwnd, EM_SHOWBALLOONTIP, 0, (LPARAM) (&ti)) == FALSE)
|
if (SendMessageW(hwnd, EM_SHOWBALLOONTIP, 0, (LPARAM) (&ti)) == FALSE)
|
||||||
xpanic("error showing TextField.Invalid() balloon tip", GetLastError());
|
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)
|
void textfieldHideInvalidBalloonTip(HWND hwnd)
|
||||||
|
|
Loading…
Reference in New Issue