From eb435bcc0179e2d6cf9db63527857119cf42d890 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Wed, 11 Sep 2013 21:23:23 +0000 Subject: [PATCH] [NTOS:IO] - Fix pool corruption resulting form a combination of r60038 and dubious SEH programming patterns svn path=/trunk/; revision=60044 --- reactos/ntoskrnl/io/iomgr/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/iomgr/file.c b/reactos/ntoskrnl/io/iomgr/file.c index 9ae45c0fdca..8944f1d7a17 100644 --- a/reactos/ntoskrnl/io/iomgr/file.c +++ b/reactos/ntoskrnl/io/iomgr/file.c @@ -1890,7 +1890,7 @@ IoCreateFile(OUT PHANDLE FileHandle, /* Return the exception code */ if (OpenPacket->EaBuffer != NULL) ExFreePool(OpenPacket->EaBuffer); ExFreePool(OpenPacket); - Status = _SEH2_GetExceptionCode(); + _SEH2_YIELD(return _SEH2_GetExceptionCode()); } _SEH2_END; }