mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
[DBGHELP] GET_ENTRY => CONTAINING_RECORD.
svn path=/trunk/; revision=71570
This commit is contained in:
parent
85acdc55e6
commit
bf211a8bbb
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue