diff --git a/reactos/services/umpnpmgr/umpnpmgr.c b/reactos/services/umpnpmgr/umpnpmgr.c index bb9ce0a797c..b9b5659091b 100644 --- a/reactos/services/umpnpmgr/umpnpmgr.c +++ b/reactos/services/umpnpmgr/umpnpmgr.c @@ -79,7 +79,7 @@ PnpEventThread(LPVOID lpParameter) DPRINT("Calling NtGetPlugPlayEvent()\n"); /* Wait for the next pnp event */ - Status = NtGetPlugPlayEvent(0, 0, PnpEvent, 1024); + Status = NtGetPlugPlayEvent(0, 0, PnpEvent, PnpEventSize); /* Resize the buffer for the PnP event if it's too small. */ if (Status == STATUS_BUFFER_TOO_SMALL) {