Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e8e1f1e6
Commit
e8e1f1e6
authored
Sep 22, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Move Beep() to kernelbase.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
810873eb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
14 deletions
+15
-14
console.c
dlls/kernel32/console.c
+0
-12
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
console.c
dlls/kernelbase/console.c
+13
-0
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+1
-1
No files found.
dlls/kernel32/console.c
View file @
e8e1f1e6
...
...
@@ -68,18 +68,6 @@ HWND WINAPI GetConsoleWindow(void)
}
/***********************************************************************
* Beep (KERNEL32.@)
*/
BOOL
WINAPI
Beep
(
DWORD
dwFreq
,
DWORD
dwDur
)
{
/* FIXME: we should not require a console to be attached */
DeviceIoControl
(
RtlGetCurrentPeb
()
->
ProcessParameters
->
ConsoleHandle
,
IOCTL_CONDRV_BEEP
,
NULL
,
0
,
NULL
,
0
,
NULL
,
NULL
);
return
TRUE
;
}
/******************************************************************
* OpenConsoleW (KERNEL32.@)
*
...
...
dlls/kernel32/kernel32.spec
View file @
e8e1f1e6
...
...
@@ -195,7 +195,7 @@
# @ stub BasepFreeActivationContextActivationBlock
# @ stub BasepFreeAppCompatData
# @ stub BasepMapModuleHandle
@ stdcall Beep(long long)
@ stdcall
-import
Beep(long long)
@ stdcall BeginUpdateResourceA(str long)
@ stdcall BeginUpdateResourceW(wstr long)
@ stdcall BindIoCompletionCallback(long ptr long)
...
...
dlls/kernelbase/console.c
View file @
e8e1f1e6
...
...
@@ -1658,6 +1658,19 @@ BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterW( HANDLE handle, LPCWS
return
ret
;
}
/***********************************************************************
* Beep (kernelbase.@)
*/
BOOL
WINAPI
Beep
(
DWORD
frequency
,
DWORD
duration
)
{
/* FIXME: we should not require a console to be attached */
console_ioctl
(
RtlGetCurrentPeb
()
->
ProcessParameters
->
ConsoleHandle
,
IOCTL_CONDRV_BEEP
,
NULL
,
0
,
NULL
,
0
,
NULL
);
return
TRUE
;
}
static
HANDLE
create_pseudo_console
(
COORD
size
,
HANDLE
input
,
HANDLE
output
,
HANDLE
signal
,
DWORD
flags
,
HANDLE
*
process
)
{
...
...
dlls/kernelbase/kernelbase.spec
View file @
e8e1f1e6
...
...
@@ -93,7 +93,7 @@
# @ stub BasepCopyFileCallback
# @ stub BasepCopyFileExW
# @ stub BasepNotifyTrackingService
@ stdcall Beep(long long)
kernel32.Beep
@ stdcall Beep(long long)
@ stub BemCopyReference
@ stub BemCreateContractFrom
@ stub BemCreateReference
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment