[DBGHELP] GET_ENTRY => CONTAINING_RECORD.

svn path=/trunk/; revision=71570
This commit is contained in:
Amine Khaldi 2016-06-05 19:47:14 +00:00
parent 85acdc55e6
commit bf211a8bbb
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}