mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
dbghelp: Don't use _NSGetExecutablePath in macho_search_loader.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e341bd7fe4
commit
dab78486d3
1 changed files with 0 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue