Improve propchange debug output
authorAndre Heinecke <aheinecke@gnupg.org>
Fri, 12 Apr 2019 07:45:39 +0000 (09:45 +0200)
committerAndre Heinecke <aheinecke@gnupg.org>
Fri, 12 Apr 2019 07:45:39 +0000 (09:45 +0200)
* src/mailitem-events.cpp (PropertyChange): Log the mail pointer
not the message pointer.

src/mailitem-events.cpp

index 618f22a..82c5bc1 100644 (file)
@@ -307,13 +307,13 @@ EVENT_SINK_INVOKE(MailItemEvents)
             {
               if (!wcscmp (prop_name, *cur))
                 {
-                  log_oom ("%s:%s: Message %p propchange: %ls discarded.",
-                           SRCNAME, __func__, m_object, prop_name);
+                  log_oom ("%s:%s: Mail %p propchange: %ls discarded.",
+                           SRCNAME, __func__, m_mail, prop_name);
                   TRETURN S_OK;
                 }
             }
-          log_oom ("%s:%s: Message %p propchange: %ls.",
-                   SRCNAME, __func__, m_object, prop_name);
+          log_oom ("%s:%s: Mail %p propchange: %ls.",
+                   SRCNAME, __func__, m_mail, prop_name);
 
           if (!wcscmp (prop_name, L"SendUsingAccount"))
             {