Improve network tab process icon error checking
@@ -733,8 +733,8 @@ VOID PhNetworkProviderUpdate(
// Get process information.
if (processItem = PhReferenceProcessItem(networkItem->ProcessId))
{
- networkItem->ProcessItem = processItem;
- networkItem->ProcessName = PhReferenceObject(processItem->ProcessName);
+ PhSetReference(&networkItem->ProcessItem, processItem);
+ PhSetReference(&networkItem->ProcessName, processItem->ProcessName);
networkItem->SubsystemProcess = !!processItem->IsSubsystemProcess;
PhpUpdateNetworkItemOwner(networkItem, processItem);
@@ -796,8 +796,6 @@ VOID PhNetworkProviderUpdate(
modified = TRUE;
}
- if (!networkItem->ProcessIconValid)
- {
if (!networkItem->ProcessItem)
{
networkItem->ProcessItem = PhReferenceProcessItem(networkItem->ProcessId);
@@ -820,7 +818,6 @@ VOID PhNetworkProviderUpdate(
modified = TRUE;
}
}
- }
if (modified)
{
