ntoskrnl.exe: Move the BroadcastSystemMessage() call to plugplay_send_event().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e6df76770e
commit
7addca95b5
|
@ -1,7 +1,7 @@
|
||||||
MODULE = ntoskrnl.exe
|
MODULE = ntoskrnl.exe
|
||||||
IMPORTLIB = ntoskrnl
|
IMPORTLIB = ntoskrnl
|
||||||
IMPORTS = advapi32 hal msvcrt
|
IMPORTS = advapi32 hal msvcrt
|
||||||
DELAYIMPORTS = rpcrt4 setupapi user32
|
DELAYIMPORTS = rpcrt4 setupapi
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mno-cygwin
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
|
|
|
@ -670,7 +670,6 @@ static LONG WINAPI rpc_filter( EXCEPTION_POINTERS *eptr )
|
||||||
|
|
||||||
static void send_devicechange( DWORD code, void *data, unsigned int size )
|
static void send_devicechange( DWORD code, void *data, unsigned int size )
|
||||||
{
|
{
|
||||||
BroadcastSystemMessageW( BSF_FORCEIFHUNG | BSF_QUERY, NULL, WM_DEVICECHANGE, code, (LPARAM)data );
|
|
||||||
__TRY
|
__TRY
|
||||||
{
|
{
|
||||||
plugplay_send_event( code, data, size );
|
plugplay_send_event( code, data, size );
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
MODULE = plugplay.exe
|
MODULE = plugplay.exe
|
||||||
IMPORTS = advapi32 rpcrt4
|
IMPORTS = advapi32 rpcrt4 user32
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mconsole -municode -mno-cygwin
|
EXTRADLLFLAGS = -mconsole -municode -mno-cygwin
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,8 @@ void __cdecl plugplay_send_event( DWORD code, const BYTE *data, unsigned int siz
|
||||||
struct listener *listener;
|
struct listener *listener;
|
||||||
struct event *event;
|
struct event *event;
|
||||||
|
|
||||||
|
BroadcastSystemMessageW( BSF_FORCEIFHUNG | BSF_QUERY, NULL, WM_DEVICECHANGE, code, (LPARAM)data );
|
||||||
|
|
||||||
EnterCriticalSection( &plugplay_cs );
|
EnterCriticalSection( &plugplay_cs );
|
||||||
|
|
||||||
LIST_FOR_EACH_ENTRY(listener, &listener_list, struct listener, entry)
|
LIST_FOR_EACH_ENTRY(listener, &listener_list, struct listener, entry)
|
||||||
|
|
Loading…
Reference in New Issue