From: Pierre Schweitzer Date: Thu, 3 Nov 2016 21:49:55 +0000 (+0000) Subject: [NTOSKRNL] X-Git-Tag: ReactOS-0.4.4-FOSDEM2017~415 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=a3436483232965831b108bcb9aab8639265dfeb9 [NTOSKRNL] 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 --- diff --git a/reactos/ntoskrnl/fstub/fstubex.c b/reactos/ntoskrnl/fstub/fstubex.c index 2ffced36d51..b9be7fa4e16 100644 --- a/reactos/ntoskrnl/fstub/fstubex.c +++ b/reactos/ntoskrnl/fstub/fstubex.c @@ -2509,6 +2509,10 @@ IoWritePartitionTableEx(IN PDEVICE_OBJECT DeviceObject, DriveLayout->PartitionEntry); } } + else + { + Status = STATUS_INVALID_PARAMETER; + } } break;