Revision: 2264
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2264&view=rev
Author:   teuf
Date:     2009-02-28 10:41:03 +0000 (Sat, 28 Feb 2009)

Log Message:
-----------
Set field at offset 0x70 in the mhbd to 2

If this field isn't set to 2, iTunes thinks databases written to the iPhone
are corrupted

Modified Paths:
--------------
    libgpod/trunk/ChangeLog
    libgpod/trunk/src/itdb_itunesdb.c

Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog     2009-02-28 10:40:22 UTC (rev 2263)
+++ libgpod/trunk/ChangeLog     2009-02-28 10:41:03 UTC (rev 2264)
@@ -1,3 +1,10 @@
+2009-02-28  Christophe Fergeau <[email protected]>
+
+       * src/itdb_itunesdb.c: Set field at offset 0x70 in the mhbd to 2
+               
+       If this field isn't set to 2, iTunes thinks databases written 
+       to the iPhone are corrupted
+
 2009-02-28  Javier Kohen <[email protected]>
 
        * src/itdb_itunesdb.c:

Modified: libgpod/trunk/src/itdb_itunesdb.c
===================================================================
--- libgpod/trunk/src/itdb_itunesdb.c   2009-02-28 10:40:22 UTC (rev 2263)
+++ libgpod/trunk/src/itdb_itunesdb.c   2009-02-28 10:41:03 UTC (rev 2264)
@@ -3516,7 +3516,10 @@
   put32lint (cts, 0);   /* unknown: seen: 0x4d for nano 3G */
   put32_n0 (cts, 5);    /* 20 bytes hash */
   put32lint (cts, 0);   /* timezone offset in seconds */
-  put32_n0 (cts, 19);   /* dummy space */
+  put16lint (cts, 2);   /* without it, iTunes thinks iPhone databases
+                          are corrupted */
+  put16lint (cts, 0);
+  put32_n0 (cts, 18);   /* dummy space */
 }
 
 /* Fill in the length of a standard header */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to