Commit 8f272e25 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Factorize SymUnloadModule and SymUnloadModule64.

parent 8b4d5e6e
......@@ -1032,14 +1032,7 @@ BOOL module_remove(struct process* pcs, struct module* module)
*/
BOOL WINAPI SymUnloadModule(HANDLE hProcess, DWORD BaseOfDll)
{
struct process* pcs;
struct module* module;
pcs = process_find_by_handle(hProcess);
if (!pcs) return FALSE;
module = module_find_by_addr(pcs, BaseOfDll, DMT_UNKNOWN);
if (!module) return FALSE;
return module_remove(pcs, module);
return SymUnloadModule64(hProcess, BaseOfDll);
}
/******************************************************************
......
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