git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f592d42
)
s3-registry: update to use new DLIST macros
author
Andrew Tridgell
<tridge@samba.org>
Sat, 6 Feb 2010 01:41:57 +0000
(12:41 +1100)
committer
Jeremy Allison
<jra@samba.org>
Wed, 10 Feb 2010 23:42:00 +0000
(15:42 -0800)
(cherry picked from commit
3437713ad7e5bccafde30553a8232119fd2a9eb9
)
source3/registry/regfio.c
patch
|
blob
|
history
diff --git
a/source3/registry/regfio.c
b/source3/registry/regfio.c
index 5d9734b15e0526ef9138d3199d70f82864f2db55..c3873a894bba41960bcbd8634d1789cd2d1c6c97 100644
(file)
--- a/
source3/registry/regfio.c
+++ b/
source3/registry/regfio.c
@@
-1815,8
+1815,8
@@
static int hashrec_cmp( REGF_HASH_REC *h1, REGF_HASH_REC *h2 )
if this is the first record, then just set the next and prev
offsets to ourself. */
- if (
nk->sec_desc->prev
) {
- REGF_SK_REC *prev =
nk->sec_desc->prev
;
+ if (
DLIST_PREV(nk->sec_desc)
) {
+ REGF_SK_REC *prev =
DLIST_PREV(nk->sec_desc)
;
nk->sec_desc->prev_sk_off = prev->hbin_off + prev->hbin->first_hbin_off - HBIN_HDR_SIZE;
prev->next_sk_off = nk->sec_desc->sk_off;