From 289127b0262246147c370f3261ce94b0e3669969 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 9 Sep 2005 04:22:58 +0000 Subject: r10104: Fix code before declaration. (This used to be commit 05c020181560afd4e6957be29795536e2d83d71e) --- source4/lib/registry/reg_backend_nt4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/registry') diff --git a/source4/lib/registry/reg_backend_nt4.c b/source4/lib/registry/reg_backend_nt4.c index f31a2f52e7..e5c0221504 100644 --- a/source4/lib/registry/reg_backend_nt4.c +++ b/source4/lib/registry/reg_backend_nt4.c @@ -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")); -- cgit