Use the allocated buffer size in the call to NtGetPlugPlayEvent.

svn path=/trunk/; revision=13422
This commit is contained in:
Eric Kohl 2005-02-05 10:54:00 +00:00
parent bb766d5404
commit bda30e3034

View file

@ -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)
{