mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 17:11:25 +00:00
fixed MessageBeep()
svn path=/trunk/; revision=5734
This commit is contained in:
parent
8b52facc15
commit
91fbb3f0d8
1 changed files with 5 additions and 4 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: messagebox.c,v 1.12 2003/08/22 00:33:47 weiden Exp $
|
/* $Id: messagebox.c,v 1.13 2003/08/22 00:37:36 weiden Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
* FILE: lib/user32/windows/messagebox.c
|
* FILE: lib/user32/windows/messagebox.c
|
||||||
|
@ -700,8 +700,9 @@ MessageBeep(UINT uType)
|
||||||
switch(uType)
|
switch(uType)
|
||||||
{
|
{
|
||||||
case 0xFFFFFFFF:
|
case 0xFFFFFFFF:
|
||||||
/* FIXME check if soundcard installed, else fall through to MB_OK */
|
//if(WaveOutGetNumDevs() == 0)
|
||||||
return Beep(500, 100); // Beep through speaker
|
return Beep(500, 100); // Beep through speaker
|
||||||
|
/* fall through */
|
||||||
case MB_OK:
|
case MB_OK:
|
||||||
EventName = L"SystemDefault";
|
EventName = L"SystemDefault";
|
||||||
break;
|
break;
|
||||||
|
@ -718,7 +719,7 @@ MessageBeep(UINT uType)
|
||||||
EventName = L"SystemQuestion";
|
EventName = L"SystemQuestion";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
DbgPrint("Playing sound: %ws\n", (LPWSTR)EventName);
|
|
||||||
return PlaySoundW(EventName, NULL, SND_ALIAS | SND_NOWAIT | SND_NOSTOP | SND_ASYNC);
|
return PlaySoundW(EventName, NULL, SND_ALIAS | SND_NOWAIT | SND_NOSTOP | SND_ASYNC);
|
||||||
#else
|
#else
|
||||||
return Beep(500, 100); // Beep through speaker
|
return Beep(500, 100); // Beep through speaker
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue