Skip to content

Commit

Permalink
ExtendedTools: Remove duplicate handle
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Nov 22, 2023
1 parent ac1760c commit dd9be41
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/ExtendedTools/objprp.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,9 @@ static NTSTATUS EtpDuplicateHandleFromProcess(

static BOOLEAN NTAPI EnumGenericModulesCallback(
_In_ PPH_MODULE_INFO Module,
_In_opt_ PVOID Context
_In_ PVOID Context
)
{
if (!Context)
return TRUE;

if (
Module->Type == PH_MODULE_TYPE_MODULE ||
Module->Type == PH_MODULE_TYPE_WOW64_MODULE
Expand Down Expand Up @@ -209,7 +206,7 @@ INT_PTR CALLBACK EtpTpWorkerFactoryPageDlgProc(
PPH_STRING symbol = NULL;
WCHAR value[PH_PTR_STR_LEN_1];

if (symbolProvider = PhCreateSymbolProvider(basicInfo.ProcessId))
if (symbolProvider = PhCreateSymbolProvider(NULL))
{
PhLoadSymbolProviderOptions(symbolProvider);

Expand Down

1 comment on commit dd9be41

@dmex
Copy link
Member Author

@dmex dmex commented on dd9be41 Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.