From bda30e303478dc4e876b2c2d65992b2d968e624a Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 5 Feb 2005 10:54:00 +0000 Subject: [PATCH] Use the allocated buffer size in the call to NtGetPlugPlayEvent. svn path=/trunk/; revision=13422 --- reactos/services/umpnpmgr/umpnpmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {