Skip to content

Commit 0925480

Browse files
authored
Merge pull request DarthTon#143 from shibbyr/master
Handle STATUS_PROCESS_IS_TERMINATING in EnumSections
2 parents 09294a0 + 3e49cb6 commit 0925480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BlackBone/Subsystem/NativeSubsystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ size_t Native::EnumPEHeaders( listModules& result )
567567
{
568568
auto status = VirtualQueryExT( memptr, &mbi );
569569

570-
if (status == STATUS_INVALID_PARAMETER || status == STATUS_ACCESS_DENIED)
570+
if (status == STATUS_INVALID_PARAMETER || status == STATUS_ACCESS_DENIED || status == STATUS_PROCESS_IS_TERMINATING)
571571
break;
572572
else if (status != STATUS_SUCCESS)
573573
continue;

0 commit comments

Comments
 (0)