[NTOSKRNL]
authorPierre Schweitzer <pierre@reactos.org>
Thu, 3 Nov 2016 21:49:55 +0000 (21:49 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 3 Nov 2016 21:49:55 +0000 (21:49 +0000)
In IoWritePartitionTableEx(), don't return STATUS_SUCCESS when we cannot write GPT to higher partitions count than space available; return STATUS_INVALID_PARAMETER.

svn path=/trunk/; revision=73114

reactos/ntoskrnl/fstub/fstubex.c

index 2ffced3..b9be7fa 100644 (file)
@@ -2509,6 +2509,10 @@ IoWritePartitionTableEx(IN PDEVICE_OBJECT DeviceObject,
                                                              DriveLayout->PartitionEntry);
                     }
                 }
+                else
+                {
+                    Status = STATUS_INVALID_PARAMETER;
+                }
             }
             break;