Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /SystemTray.cpp [6acffb] .. [36e306] Maximize Restore

  Switch to side-by-side view

--- a/SystemTray.cpp
+++ b/SystemTray.cpp
@@ -520,8 +520,10 @@
           // pos 2  = Note on missing fields in entry
           // pos 3  = Separator
           // pos 4+ = entries.....
-          irc = pMainRecentEntriesMenu->InsertMenu(i + 4, MF_BYPOSITION | MF_POPUP,
-                                                   (UINT)pNewRecentEntryMenu[i]->m_hMenu, cEntry);
+          irc = pMainRecentEntriesMenu->InsertMenu(i + 4,
+                                                   MF_BYPOSITION | MF_POPUP,
+                                                   UINT_PTR(pNewRecentEntryMenu[i]->m_hMenu),
+                                                   cEntry);
           ASSERT(irc != 0);
         }
       }