From 5b7d8220d3f17d876059d419611777cb9a59ea54 Mon Sep 17 00:00:00 2001 From: Mike Nordell Date: Sat, 1 May 2004 00:25:41 +0000 Subject: [PATCH] Make MmQuerySectionView tell how many bytes it actually did set. Fixes VirtualQuery. svn path=/trunk/; revision=9257 --- reactos/ntoskrnl/mm/section.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index 6b8432f917b..070147e811c 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: section.c,v 1.147 2004/04/10 22:35:26 gdalsnes Exp $ +/* $Id: section.c,v 1.148 2004/05/01 00:25:41 tamlin Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/mm/section.c @@ -2041,6 +2041,7 @@ MmQuerySectionView(PMEMORY_AREA MemoryArea, Info->Type = MEM_MAPPED; } + *ResultLength = sizeof(MEMORY_BASIC_INFORMATION); return(STATUS_SUCCESS); }