comparison src/libpst.c @ 268:8dcfef53a4f3

adding more debug code
author Carl Byington <carl@five-ten-sg.com>
date Sun, 17 Apr 2011 17:22:29 -0700
parents 3fa737c05322
children 5ca87faa020b
comparison
equal deleted inserted replaced
267:3fa737c05322 268:8dcfef53a4f3
2465 LIST_COPY_EMAIL_BOOL("Compressed RTF in Sync", item->email->rtf_in_sync); 2465 LIST_COPY_EMAIL_BOOL("Compressed RTF in Sync", item->email->rtf_in_sync);
2466 break; 2466 break;
2467 case 0x0E20: // PR_ATTACH_SIZE binary Attachment data in record 2467 case 0x0E20: // PR_ATTACH_SIZE binary Attachment data in record
2468 NULL_CHECK(attach); 2468 NULL_CHECK(attach);
2469 LIST_COPY_INT32("Attachment Size", t); 2469 LIST_COPY_INT32("Attachment Size", t);
2470 if (attach->data.data || attach->data.size) { 2470 if (attach->data.data && (attach->data.size != (size_t)t)) {
2471 DEBUG_INFO(("already have data %#"PRIxPTR" size %#"PRIx64"\n", attach->data.data, attach->data.size)); 2471 DEBUG_INFO(("already have data %#"PRIxPTR" size %#"PRIx64"\n", attach->data.data, attach->data.size));
2472 } 2472 }
2473 else { 2473 else {
2474 attach->data.size = (size_t)t; 2474 attach->data.size = (size_t)t;
2475 } 2475 }