mirror of
https://github.com/reactos/reactos.git
synced 2026-07-06 07:44:25 +08:00
Use the allocated buffer size in the call to NtGetPlugPlayEvent.
svn path=/trunk/; revision=13422
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user