[EXPLORER] Fix a Clang-Cl warning about Icon->ProcessId
authorSerge Gautherie <reactos-git_serge_171003@gautherie.fr>
Sun, 11 Feb 2018 22:57:15 +0000 (23:57 +0100)
committerGed Murphy <gedmurphy@reactos.org>
Mon, 12 Feb 2018 08:41:26 +0000 (08:41 +0000)
"warning: expression result unused [-Wunused-value]"
Regressed in be2bf9b.

CORE-14306

base/shell/explorer/syspager.cpp

index a1982e7..7be7eeb 100644 (file)
@@ -332,7 +332,7 @@ bool CIconWatcher::AddIconToWatcher(_In_ CONST NOTIFYICONDATA *iconData)
 
     IconWatcherData *Icon = new IconWatcherData(iconData);
     Icon->hProcess = hProcess;
 
     IconWatcherData *Icon = new IconWatcherData(iconData);
     Icon->hProcess = hProcess;
-    Icon->ProcessId;
+    Icon->ProcessId = ProcessId;
 
     bool Added = false;
     EnterCriticalSection(&m_ListLock);
 
     bool Added = false;
     EnterCriticalSection(&m_ListLock);