Try to delete jump lists in "-cleanup".
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 26 Dec 2010 20:00:45 +0000 (20:00 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 26 Dec 2010 20:00:45 +0000 (20:00 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@9050 cda61777-01e9-0310-a592-d414129be87e

windows/winjump.c
windows/winnojmp.c
windows/winstore.c
windows/winstuff.h

index 4e69dd7..5cd9814 100644 (file)
@@ -663,7 +663,7 @@ static void update_jumplist_from_registry(void)
 }
 
 /* Clears the entire jumplist. */
-static void clear_jumplist(void)
+void clear_jumplist(void)
 {
     ICustomDestinationList *pCDL;
     UINT num_items;
index 5a3ae83..27d969a 100644 (file)
@@ -5,3 +5,4 @@
 \r
 void add_session_to_jumplist(const char * const sessionname) {}\r
 void remove_session_from_jumplist(const char * const sessionname) {}\r
+void clear_jumplist(void) {}\r
index 00049b7..99b1ab8 100644 (file)
@@ -780,6 +780,12 @@ void cleanup_all(void)
     access_random_seed(DEL);
 
     /* ------------------------------------------------------------
+     * Ask Windows to delete any jump list information associated
+     * with this installation of PuTTY.
+     */
+    clear_jumplist();
+
+    /* ------------------------------------------------------------
      * Destroy all registry information associated with PuTTY.
      */
 
index 28f6556..610d71a 100644 (file)
@@ -514,6 +514,7 @@ extern Backend serial_backend;
 #define JUMPLIST_SUPPORTED             /* suppress #defines in putty.h */
 void add_session_to_jumplist(const char * const sessionname);
 void remove_session_from_jumplist(const char * const sessionname);
+void clear_jumplist(void);
 
 /*
  * Extra functions in winstore.c over and above the interface in