Use the allocated buffer size in the call to NtGetPlugPlayEvent.
Modified: trunk/reactos/services/umpnpmgr/umpnpmgr.c
_____
Modified: trunk/reactos/services/umpnpmgr/umpnpmgr.c
--- trunk/reactos/services/umpnpmgr/umpnpmgr.c 2005-02-05 10:31:37 UTC
(rev 13421)
+++ trunk/reactos/services/umpnpmgr/umpnpmgr.c 2005-02-05 10:54:00 UTC
(rev 13422)
@@ -79,7 +79,7 @@
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)
{
Show replies by date