From: Eric Biggers Date: Sat, 24 Nov 2012 03:37:26 +0000 (-0600) Subject: Tweak XML element order and time format X-Git-Tag: v1.2.1~78 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=13949d5667fbdc6eaa0466615d1b32a145d06ecd Tweak XML element order and time format --- diff --git a/src/xml.c b/src/xml.c index d6c66557..9a0bded2 100644 --- a/src/xml.c +++ b/src/xml.c @@ -621,13 +621,6 @@ static int xml_write_windows_info(xmlTextWriter *writer, return rc; } - if (windows_info->system_root) { - rc = xmlTextWriterWriteElement(writer, "SYSTEMROOT", - windows_info->system_root); - if (rc < 0) - return rc; - } - if (windows_info->product_type) { rc = xmlTextWriterWriteElement(writer, "PRODUCTTYPE", windows_info->product_type); @@ -669,6 +662,13 @@ static int xml_write_windows_info(xmlTextWriter *writer, return rc; } + if (windows_info->system_root) { + rc = xmlTextWriterWriteElement(writer, "SYSTEMROOT", + windows_info->system_root); + if (rc < 0) + return rc; + } + return xmlTextWriterEndElement(writer); /* */ } @@ -682,12 +682,12 @@ static int xml_write_time(xmlTextWriter *writer, const char *element_name, return rc; rc = xmlTextWriterWriteFormatElement(writer, "HIGHPART", - "0x%"PRIX32, (u32)(time >> 32)); + "0x%08"PRIX32, (u32)(time >> 32)); if (rc < 0) return rc; rc = xmlTextWriterWriteFormatElement(writer, "LOWPART", - "0x%"PRIX32, (u32)time); + "0x%08"PRIX32, (u32)time); if (rc < 0) return rc;