X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=hivex%2Fhivex.c;fp=hivex%2Fhivex.c;h=ce3e14c1e42e4d50359740516a3a58630835a887;hp=c8257a3ee19894d8dd6569a55239c15e0e9b17d3;hb=023a1811a708ac107022133f8931d47442b23c09;hpb=6ecb9ef1418631a11e10d080ea88556750593f22 diff --git a/hivex/hivex.c b/hivex/hivex.c index c8257a3..ce3e14c 100644 --- a/hivex/hivex.c +++ b/hivex/hivex.c @@ -803,7 +803,7 @@ get_children (hive_h *h, hive_node_h node, /* Count total number of children. */ size_t i, count = 0; for (i = 0; i < nr_offsets; ++i) { - hive_node_h offset = ri->offset[i]; + hive_node_h offset = le32toh (ri->offset[i]); offset += 0x1000; if (!IS_VALID_BLOCK (h, offset)) { if (h->msglvl >= 2) @@ -839,7 +839,7 @@ get_children (hive_h *h, hive_node_h node, * something reasonable above. */ for (i = 0; i < nr_offsets; ++i) { - hive_node_h offset = ri->offset[i]; + hive_node_h offset = le32toh (ri->offset[i]); offset += 0x1000; if (!IS_VALID_BLOCK (h, offset)) { if (h->msglvl >= 2)