mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[NTOSKRNL]
Fix condition check for informing the debugger in NtMapViewOfSection Found by Amine Khaldi svn path=/trunk/; revision=53525
This commit is contained in:
parent
f7fc62b255
commit
e6fe154eef
1 changed files with 12 additions and 13 deletions
|
@ -1679,11 +1679,13 @@ NtMapViewOfSection(IN HANDLE SectionHandle,
|
||||||
AllocationType,
|
AllocationType,
|
||||||
Protect);
|
Protect);
|
||||||
|
|
||||||
|
/* Return data only on success */
|
||||||
|
if (NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
/* Check if this is an image for the current process */
|
/* Check if this is an image for the current process */
|
||||||
if ((Section->AllocationAttributes & SEC_IMAGE) &&
|
if ((Section->AllocationAttributes & SEC_IMAGE) &&
|
||||||
(Process == PsGetCurrentProcess()) &&
|
(Process == PsGetCurrentProcess()) &&
|
||||||
((Status != STATUS_IMAGE_NOT_AT_BASE) ||
|
(Status != STATUS_IMAGE_NOT_AT_BASE))
|
||||||
(Status != STATUS_CONFLICTING_ADDRESSES)))
|
|
||||||
{
|
{
|
||||||
/* Notify the debugger */
|
/* Notify the debugger */
|
||||||
DbgkMapViewOfSection(Section,
|
DbgkMapViewOfSection(Section,
|
||||||
|
@ -1692,9 +1694,6 @@ NtMapViewOfSection(IN HANDLE SectionHandle,
|
||||||
SafeViewSize);
|
SafeViewSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return data only on success */
|
|
||||||
if (NT_SUCCESS(Status))
|
|
||||||
{
|
|
||||||
/* Enter SEH */
|
/* Enter SEH */
|
||||||
_SEH2_TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue