Skip to content

Commit

Permalink
Update fwmon.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Jan 8, 2025
1 parent 4338ea4 commit 7f1fe40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/ExtendedTools/fwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,7 @@ VOID CALLBACK EtFwEventCallback(

if (entry.ProcessItem = EtFwGetFileNameProcessCachedSlow(fileName))
{
PhSwapReference(&entry.ProcessFileNameWin32, entry.ProcessItem->FileNameWin32);
PhSwapReference(&entry.ProcessFileNameWin32, PhGetFileName(entry.ProcessItem->FileName));
}

PhDereferenceObject(fileName);
Expand Down Expand Up @@ -1979,7 +1979,7 @@ VOID CALLBACK EtFwEventCallback(
{
PhMoveReference(&entry.ProcessItem, PhReferenceProcessItem(SYSTEM_PROCESS_ID));
PhSwapReference(&entry.ProcessFileName, entry.ProcessItem->FileName);
PhSwapReference(&entry.ProcessFileNameWin32, entry.ProcessItem->FileNameWin32);
PhSwapReference(&entry.ProcessFileNameWin32, PhGetFileName(entry.ProcessItem->FileName));
PhSwapReference(&entry.ProcessBaseString, entry.ProcessItem->ProcessName);
}

Expand Down

0 comments on commit 7f1fe40

Please sign in to comment.