Jacek Caban : dbghelp: Don't use _NSGetExecutablePath in macho_search_loader.

Alexandre Julliard julliard at winehq.org
Thu Apr 2 14:27:37 CDT 2020


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Apr  2 19:18:10 2020 +0200

dbghelp: Don't use _NSGetExecutablePath in macho_search_loader.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dbghelp/macho_module.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/dlls/dbghelp/macho_module.c b/dlls/dbghelp/macho_module.c
index e33313ec63..795b8500d9 100644
--- a/dlls/dbghelp/macho_module.c
+++ b/dlls/dbghelp/macho_module.c
@@ -55,7 +55,6 @@
 #ifdef HAVE_MACH_O_LOADER_H
 
 #include <mach-o/nlist.h>
-#include <mach-o/dyld.h>
 
 struct dyld_image_info32
 {
@@ -1923,18 +1922,6 @@ static BOOL macho_search_loader(struct process* pcs, struct macho_info* macho_in
         }
     }
 
-    /* If we couldn't get the executable path from the target process, try our
-       own.  It will almost always be the same. */
-    if (!got_path)
-    {
-        len = sizeof(path);
-        if (!_NSGetExecutablePath(path, &len))
-        {
-            got_path = TRUE;
-            TRACE("using own executable path: %s\n", debugstr_a(path));
-        }
-    }
-
     if (got_path)
     {
         WCHAR* pathW;




More information about the wine-cvs mailing list