Commit 7addca95 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntoskrnl.exe: Move the BroadcastSystemMessage() call to plugplay_send_event().

parent e6df7677
MODULE = ntoskrnl.exe
IMPORTLIB = ntoskrnl
IMPORTS = advapi32 hal msvcrt
DELAYIMPORTS = rpcrt4 setupapi user32
DELAYIMPORTS = rpcrt4 setupapi
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 )
{
BroadcastSystemMessageW( BSF_FORCEIFHUNG | BSF_QUERY, NULL, WM_DEVICECHANGE, code, (LPARAM)data );
__TRY
{
plugplay_send_event( code, data, size );
......
MODULE = plugplay.exe
IMPORTS = advapi32 rpcrt4
IMPORTS = advapi32 rpcrt4 user32
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 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment