mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[NTOSKRNL/MM] Fix a few wine tests
This commit is contained in:
parent
4abda863ce
commit
c3bd70cfd1
1 changed files with 12 additions and 3 deletions
|
@ -4302,13 +4302,22 @@ NtQuerySection(
|
||||||
|
|
||||||
if (Section->u.Flags.Image)
|
if (Section->u.Flags.Image)
|
||||||
{
|
{
|
||||||
Sbi.BaseAddress = 0;
|
if (MiIsRosSectionObject(Section))
|
||||||
Sbi.Size.QuadPart = 0;
|
{
|
||||||
|
PMM_IMAGE_SECTION_OBJECT ImageSectionObject = ((PMM_IMAGE_SECTION_OBJECT)Section->Segment);
|
||||||
|
Sbi.BaseAddress = 0;
|
||||||
|
Sbi.Size.QuadPart = ImageSectionObject->ImageInformation.ImageFileSize;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Not supported yet */
|
||||||
|
ASSERT(FALSE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (MiIsRosSectionObject(Section))
|
else if (MiIsRosSectionObject(Section))
|
||||||
{
|
{
|
||||||
Sbi.BaseAddress = (PVOID)((PMM_SECTION_SEGMENT)Section->Segment)->Image.VirtualAddress;
|
Sbi.BaseAddress = (PVOID)((PMM_SECTION_SEGMENT)Section->Segment)->Image.VirtualAddress;
|
||||||
Sbi.Size.QuadPart = ((PMM_SECTION_SEGMENT)Section->Segment)->Length.QuadPart;
|
Sbi.Size.QuadPart = ((PMM_SECTION_SEGMENT)Section->Segment)->RawLength.QuadPart;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue