mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
[DBGHELP] GET_ENTRY => CONTAINING_RECORD.
svn path=/trunk/; revision=71570
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user