r10104: Fix code before declaration.
authorTim Potter <tpot@samba.org>
Fri, 9 Sep 2005 04:22:58 +0000 (04:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:37:59 +0000 (13:37 -0500)
source/lib/registry/reg_backend_nt4.c

index f31a2f52e7e2a00c641a5c59fe17afe3aaff3919..e5c022150440105122da83170baa3bf134a09b05 100644 (file)
@@ -147,8 +147,8 @@ static DATA_BLOB hbin_alloc (struct regf_data *data, uint32_t size, uint32_t *of
                int j;
                uint32_t my_size;
                for (j = 0; j < hbin->offset_to_next-0x20; j+= my_size) {
-                       my_size = IVAL(hbin->data, j);
                        uint32_t header = IVAL(hbin->data, j + 4);
+                       my_size = IVAL(hbin->data, j);
 
                        if (my_size == 0x0) {
                                DEBUG(0, ("Invalid zero-length block! File is corrupt.\n"));