Rename OS module loading function as it clashes with define on win32

This commit is contained in:
baldurk
2015-08-31 17:12:21 +02:00
parent 32b028e5a6
commit 277b97efb6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ void Process::StartGlobalHook(const char *pathmatch, const char *logfile, const
RDCUNIMPLEMENTED("Global hooking of all processes on linux");
}
bool Process::LoadLibrary(const char *module)
bool Process::LoadModule(const char *module)
{
return dlopen(module, RTLD_NOW) != NULL;
}
+1 -1
View File
@@ -50,7 +50,7 @@ namespace Process
uint32_t LaunchProcess(const char *app, const char *workingDir, const char *cmdLine);
uint32_t LaunchAndInjectIntoProcess(const char *app, const char *workingDir, const char *cmdLine,
const char *logfile, const CaptureOptions *opts, bool waitForExit);
bool LoadLibrary(const char *module);
bool LoadModule(const char *module);
void *GetFunctionAddress(const char *module, const char *function);
uint32_t GetCurrentPID();
};
+1 -1
View File
@@ -566,7 +566,7 @@ void Process::StartGlobalHook(const char *pathmatch, const char *logfile, const
#endif
}
bool LoadLibrary(const char *module)
bool Process::LoadModule(const char *module)
{
HMODULE mod = GetModuleHandleA(module);
if(mod != NULL)