mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +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;
|
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 */
|
||||||
|
|
Loading…
Reference in a new issue