Commit 2a1d8efd authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Removed call to registered callback when unloading a module.

First, native dbghelp doesn't do it, and it crashed windbg, likely because we got the undocumented arguments wrong.
parent c25d3ac7
......@@ -520,9 +520,9 @@ BOOL module_remove(struct process* pcs, struct module* module)
HeapFree(GetProcessHeap(), 0, (char*)module->sources);
HeapFree(GetProcessHeap(), 0, module->addr_sorttab);
pool_destroy(&module->pool);
if (module->module.SymType != SymNone)
pcs_callback(pcs, CBA_SYMBOLS_UNLOADED, NULL);
/* native dbghelp doesn't invoke registered callback(,CBA_SYMBOLS_UNLOADED,) here
* so do we
*/
for (p = &pcs->lmodules; *p; p = &(*p)->next)
{
if (*p == module)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment