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;
DWORD dwReturned;
hBeep = CreateFile("\\Beep",
hBeep = CreateFile("\\\\.\\Beep",
FILE_GENERIC_READ | FILE_GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
0,
NULL);
if (!hBeep)
if (hBeep == INVALID_HANDLE_VALUE)
return FALSE;
/* Set beep data */