Eric Pouech : dbghelp: Factorize SymUnloadModule and SymUnloadModule64.

Alexandre Julliard julliard at winehq.org
Tue Oct 19 16:07:48 CDT 2021


Module: wine
Branch: master
Commit: 8f272e25aff25a310b07d00edff043cd3cdd9cdd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8f272e25aff25a310b07d00edff043cd3cdd9cdd

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Tue Oct 19 15:51:49 2021 +0200

dbghelp: Factorize SymUnloadModule and SymUnloadModule64.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dbghelp/module.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/dlls/dbghelp/module.c b/dlls/dbghelp/module.c
index b645e6dbf0f..f0fd2a55016 100644
--- a/dlls/dbghelp/module.c
+++ b/dlls/dbghelp/module.c
@@ -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);
 }
 
 /******************************************************************




More information about the wine-cvs mailing list