From a3436483232965831b108bcb9aab8639265dfeb9 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Thu, 3 Nov 2016 21:49:55 +0000 Subject: [PATCH] [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 --- reactos/ntoskrnl/fstub/fstubex.c | 4 ++++ 1 file changed, 4 insertions(+) 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;