Fix call to IOCTL_SERIAL_PURGE
[reactos.git] / 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);