diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-25 01:44:14 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-25 01:44:14 -0400 |
| commit | 95c42353fb9e5fd34ca7d1887dde62e0a8ca2158 (patch) | |
| tree | 6060b558d613ac2757fee7304640f7f851ab4f96 /redo/basicctrls_windows.c | |
| parent | f9c5c41c77506142eef2461dd75b2178fc5b598a (diff) | |
Added error return checks to MessageBeep();
Diffstat (limited to 'redo/basicctrls_windows.c')
| -rw-r--r-- | redo/basicctrls_windows.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redo/basicctrls_windows.c b/redo/basicctrls_windows.c index c82c5d6..4c5a129 100644 --- a/redo/basicctrls_windows.c +++ b/redo/basicctrls_windows.c @@ -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) |
