[ros-kernel] VirtualQuery problem

Hartmut Birr Hartmut.Birr at gmx.de
Sat May 1 16:14:57 CEST 2004



> -----Original Message-----
> From: ros-kernel-bounces at reactos.com 
> [mailto:ros-kernel-bounces at reactos.com] On Behalf Of Mike Nordell
> Sent: Saturday, May 01, 2004 9:24 AM
> To: ros-kernel
> Subject: [ros-kernel] VirtualQuery problem
> 
> 
> I have traced it to MmQuerySectionView in 
> ntoskrnl\mm\section.c, called from NtQueryVirtualMemory, but 
> there my research ends. The error is that the code sets both 
> BaseAddress and AllocationBase to the same value. This is 
> wrong. AllocationBase is to be the first address of the 
> module, i.e. the HMODULE of it - its load address.
> 
> I suspect a call to NtQuerySection or something would be in 
> place, but I don't really know this area well enough to put 
> the finishing touch to the correction, why I was hoping 
> someone else might provide some insight or commit the fix for it.

MmQuerySectionView should handle image sections in a different way. 

- Hartmut

-------------- next part --------------
A non-text attachment was scrubbed...
Name: section.diff
Type: application/octet-stream
Size: 2493 bytes
Desc: not available
Url : http://reactos.com:8080/pipermail/ros-kernel/attachments/20040501/5f6a799f/section.obj


More information about the Ros-kernel mailing list