From 0670d6b1565e99defad8d20653681dcba32fac47 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Sun, 8 Dec 2002 14:50:06 +0000 Subject: [PATCH 1/1] Fix DAT_TIME so it becomes NTTIME and matches Samba source. Add code to start reading the registry file. (This used to be commit 10bc459dd9d3b5e695f9e18624200705a1bf33dc) --- source3/utils/editreg.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/source3/utils/editreg.c b/source3/utils/editreg.c index 3741eeece6c..7e40efeeadc 100644 --- a/source3/utils/editreg.c +++ b/source3/utils/editreg.c @@ -299,6 +299,7 @@ Hope this helps.... (Although it was "fun" for me to uncover this things, #include #include +#include #include #include #include @@ -315,8 +316,8 @@ Hope this helps.... (Although it was "fun" for me to uncover this things, */ typedef struct date_time_s { - int sec, microsec; -} DATE_TIME; + unsigned int low, high; +} NTTIME; /* * Definition of a Key. It has a name, classname, date/time last modified, @@ -330,7 +331,7 @@ typedef struct reg_key_s { char *name; /* Name of the key */ char *class_name; int type; /* One of REG_ROOT_KEY or REG_SUB_KEY */ - DATE_TIME last_mod; /* Time last modified */ + NTTIME last_mod; /* Time last modified */ struct reg_key_s *owner; struct key_list_s *sub_keys; struct val_list_s *values; @@ -538,6 +539,14 @@ int nt_get_regf_hdr(REGF *regf) } } + /* + * At this point, regf->base != NULL, and we should be able to read the + * header + */ + + ASSERT(regf->base != NULL); + + } int nt_get_hbin_hdr(REGF *regf, int hbin_offs) -- 2.34.1