fixed Beep()

svn path=/trunk/; revision=401
This commit is contained in:
Eric Kohl 1999-04-19 18:43:54 +00:00
parent db068d0cae
commit 81b9b25bc7

View file

@ -635,14 +635,14 @@ Beep (DWORD dwFreq, DWORD dwDuration)
BEEP_SET_PARAMETERS BeepSetParameters; BEEP_SET_PARAMETERS BeepSetParameters;
DWORD dwReturned; DWORD dwReturned;
hBeep = CreateFile("\\Beep", hBeep = CreateFile("\\\\.\\Beep",
FILE_GENERIC_READ | FILE_GENERIC_WRITE, FILE_GENERIC_READ | FILE_GENERIC_WRITE,
0, 0,
NULL, NULL,
OPEN_EXISTING, OPEN_EXISTING,
0, 0,
NULL); NULL);
if (!hBeep) if (hBeep == INVALID_HANDLE_VALUE)
return FALSE; return FALSE;
/* Set beep data */ /* Set beep data */