Skip to content

Commit 60511ab

Browse files
alexanderobzherinbaldurk
authored andcommitted
FreeBSD: fix FunctionLoadCallback signature
1 parent f42b334 commit 60511ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

renderdoc/os/posix/bsd/bsd_hook.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ static void CheckLoadedLibraries()
428428

429429
for(FunctionLoadCallback cb : callbacks)
430430
if(cb)
431-
cb(handle);
431+
cb(handle, libName.c_str());
432432
}
433433
}
434434

@@ -470,7 +470,7 @@ void *intercept_dlopen(const char *filename, int flag, void *ret)
470470

471471
for(FunctionLoadCallback cb : callbacks)
472472
if(cb)
473-
cb(ret);
473+
cb(ret, filename);
474474

475475
ret = realdlopen("lib" STRINGIZE(RDOC_BASE_NAME) ".so", flag);
476476
break;

0 commit comments

Comments
 (0)