mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
fixed Beep()
svn path=/trunk/; revision=401
This commit is contained in:
parent
db068d0cae
commit
81b9b25bc7
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue