Fix call to IOCTL_SERIAL_PURGE
authorHervé Poussineau <hpoussin@reactos.org>
Sun, 4 Jun 2006 16:32:54 +0000 (16:32 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Sun, 4 Jun 2006 16:32:54 +0000 (16:32 +0000)
svn path=/trunk/; revision=22213

reactos/drivers/bus/serenum/detect.c

index c1c7680..5cf8cc0 100644 (file)
@@ -338,7 +338,7 @@ SerenumDetectPnpDevice(
        if (!NT_SUCCESS(Status)) goto ByeBye;
        Purge = SERIAL_PURGE_RXABORT | SERIAL_PURGE_RXCLEAR;
        Status = DeviceIoControl(LowerDevice, IOCTL_SERIAL_PURGE,
-               &Purge, 0, NULL, NULL);
+               &Purge, sizeof(ULONG), NULL, NULL);
        if (!NT_SUCCESS(Status)) goto ByeBye;
        Wait(200);