Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d8b77f14
Commit
d8b77f14
authored
Nov 24, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse.drv: Use the Unix call helpers.
parent
07211395
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
mmdevdrv.c
dlls/winepulse.drv/mmdevdrv.c
+4
-7
No files found.
dlls/winepulse.drv/mmdevdrv.c
View file @
d8b77f14
...
@@ -50,8 +50,6 @@
...
@@ -50,8 +50,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
pulse
);
WINE_DEFAULT_DEBUG_CHANNEL
(
pulse
);
static
unixlib_handle_t
pulse_handle
;
#define MAX_PULSE_NAME_LEN 256
#define MAX_PULSE_NAME_LEN 256
#define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER)
#define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER)
...
@@ -87,17 +85,16 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
...
@@ -87,17 +85,16 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
{
{
if
(
reason
==
DLL_PROCESS_ATTACH
)
{
if
(
reason
==
DLL_PROCESS_ATTACH
)
{
DisableThreadLibraryCalls
(
dll
);
DisableThreadLibraryCalls
(
dll
);
if
(
NtQueryVirtualMemory
(
GetCurrentProcess
(),
dll
,
MemoryWineUnixFuncs
,
if
(
__wine_init_unix_call
())
&
pulse_handle
,
sizeof
(
pulse_handle
),
NULL
))
return
FALSE
;
return
FALSE
;
if
(
__wine_unix_call
(
pulse_handle
,
process_attach
,
NULL
))
if
(
WINE_UNIX_CALL
(
process_attach
,
NULL
))
return
FALSE
;
return
FALSE
;
}
else
if
(
reason
==
DLL_PROCESS_DETACH
)
{
}
else
if
(
reason
==
DLL_PROCESS_DETACH
)
{
struct
device_cache
*
device
,
*
device_next
;
struct
device_cache
*
device
,
*
device_next
;
LIST_FOR_EACH_ENTRY_SAFE
(
device
,
device_next
,
&
g_devices_cache
,
struct
device_cache
,
entry
)
LIST_FOR_EACH_ENTRY_SAFE
(
device
,
device_next
,
&
g_devices_cache
,
struct
device_cache
,
entry
)
free
(
device
);
free
(
device
);
__wine_unix_call
(
pulse_handle
,
process_detach
,
NULL
);
WINE_UNIX_CALL
(
process_detach
,
NULL
);
if
(
pulse_thread
)
{
if
(
pulse_thread
)
{
WaitForSingleObject
(
pulse_thread
,
INFINITE
);
WaitForSingleObject
(
pulse_thread
,
INFINITE
);
CloseHandle
(
pulse_thread
);
CloseHandle
(
pulse_thread
);
...
@@ -218,7 +215,7 @@ static inline ACImpl *impl_from_IAudioStreamVolume(IAudioStreamVolume *iface)
...
@@ -218,7 +215,7 @@ static inline ACImpl *impl_from_IAudioStreamVolume(IAudioStreamVolume *iface)
static
void
pulse_call
(
enum
unix_funcs
code
,
void
*
params
)
static
void
pulse_call
(
enum
unix_funcs
code
,
void
*
params
)
{
{
NTSTATUS
status
;
NTSTATUS
status
;
status
=
__wine_unix_call
(
pulse_handle
,
code
,
params
);
status
=
WINE_UNIX_CALL
(
code
,
params
);
assert
(
!
status
);
assert
(
!
status
);
}
}
...
...
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