From bf211a8bbba1f1913d80e1b9c3bccfa38f479a42 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sun, 5 Jun 2016 19:47:14 +0000 Subject: [PATCH] [DBGHELP] GET_ENTRY => CONTAINING_RECORD. svn path=/trunk/; revision=71570 --- reactos/dll/win32/dbghelp/dbghelp_ros.diff | 2 +- reactos/dll/win32/dbghelp/symbol.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/dbghelp/dbghelp_ros.diff b/reactos/dll/win32/dbghelp/dbghelp_ros.diff index 27ff9dbabf5..027dca43a85 100644 --- a/reactos/dll/win32/dbghelp/dbghelp_ros.diff +++ b/reactos/dll/win32/dbghelp/dbghelp_ros.diff @@ -529,7 +529,7 @@ diff -pudN e:\wine\dlls\dbghelp/symbol.c e:\reactos\dll\win32\dbghelp/symbol.c + + /* try to find the pointer in our ht */ + while ((ptr = hash_table_iter_up(&hti))) { -+ idx_to_ptr = GET_ENTRY(ptr, struct symt_idx_to_ptr, hash_elt); ++ idx_to_ptr = CONTAINING_RECORD(ptr, struct symt_idx_to_ptr, hash_elt); + if (idx_to_ptr->sym == sym) + return idx_to_ptr->idx; } diff --git a/reactos/dll/win32/dbghelp/symbol.c b/reactos/dll/win32/dbghelp/symbol.c index 77d83c225b2..9efb474e429 100644 --- a/reactos/dll/win32/dbghelp/symbol.c +++ b/reactos/dll/win32/dbghelp/symbol.c @@ -68,7 +68,7 @@ DWORD symt_ptr2index(struct module* module, const struct symt* sym) /* try to find the pointer in our ht */ while ((ptr = hash_table_iter_up(&hti))) { - idx_to_ptr = GET_ENTRY(ptr, struct symt_idx_to_ptr, hash_elt); + idx_to_ptr = CONTAINING_RECORD(ptr, struct symt_idx_to_ptr, hash_elt); if (idx_to_ptr->sym == sym) return idx_to_ptr->idx; }