Author: tfaber
Date: Sat Jul 19 17:50:56 2014
New Revision: 63722
URL:
http://svn.reactos.org/svn/reactos?rev=63722&view=rev
Log:
[NTOS:FSTUB]
- Make sure to NULL the return pointer in the failure case of xHalIoReadPartitionTable.
CORE-8359
Modified:
trunk/reactos/ntoskrnl/fstub/disksup.c
Modified: trunk/reactos/ntoskrnl/fstub/disksup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fstub/disksup.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/fstub/disksup.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fstub/disksup.c [iso-8859-1] Sat Jul 19 17:50:56 2014
@@ -1787,7 +1787,11 @@
/* Free the buffer and check for success */
if (Buffer) ExFreePoolWithTag(Buffer, TAG_FILE_SYSTEM);
- if (!NT_SUCCESS(Status)) ExFreePoolWithTag(*PartitionBuffer, TAG_FILE_SYSTEM);
+ if (!NT_SUCCESS(Status))
+ {
+ ExFreePoolWithTag(*PartitionBuffer, TAG_FILE_SYSTEM);
+ *PartitionBuffer = NULL;
+ }
/* Return status */
return Status;