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:
Zebediah Figura 2020-05-05 11:25:41 -05:00 committed by Alexandre Julliard
parent e6df76770e
commit 7addca95b5
4 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
MODULE = ntoskrnl.exe
IMPORTLIB = ntoskrnl
IMPORTS = advapi32 hal msvcrt
DELAYIMPORTS = rpcrt4 setupapi user32
DELAYIMPORTS = rpcrt4 setupapi
EXTRADLLFLAGS = -mno-cygwin

View File

@ -670,7 +670,6 @@ static LONG WINAPI rpc_filter( EXCEPTION_POINTERS *eptr )
static void send_devicechange( DWORD code, void *data, unsigned int size )
{
BroadcastSystemMessageW( BSF_FORCEIFHUNG | BSF_QUERY, NULL, WM_DEVICECHANGE, code, (LPARAM)data );
__TRY
{
plugplay_send_event( code, data, size );

View File

@ -1,5 +1,5 @@
MODULE = plugplay.exe
IMPORTS = advapi32 rpcrt4
IMPORTS = advapi32 rpcrt4 user32
EXTRADLLFLAGS = -mconsole -municode -mno-cygwin

View File

@ -141,6 +141,8 @@ void __cdecl plugplay_send_event( DWORD code, const BYTE *data, unsigned int siz
struct listener *listener;
struct event *event;
BroadcastSystemMessageW( BSF_FORCEIFHUNG | BSF_QUERY, NULL, WM_DEVICECHANGE, code, (LPARAM)data );
EnterCriticalSection( &plugplay_cs );
LIST_FOR_EACH_ENTRY(listener, &listener_list, struct listener, entry)