mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Use the allocated buffer size in the call to NtGetPlugPlayEvent.
svn path=/trunk/; revision=13422
This commit is contained in:
parent
bb766d5404
commit
bda30e3034
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue