Skip to content

Commit

Permalink
fixed dumb windows errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbo committed Jun 12, 2024
1 parent 0dd78c2 commit 5707ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cpptests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@ LM_API_EXPORT int main()
auto libpath = std::filesystem::current_path() / "tests" / "libtest.so";
std::cout << "[*] Library Path: " << libpath << std::endl;

auto cur_loaded_mod = LM::LoadModule(libpath.c_str()).value();
auto cur_loaded_mod = LM::LoadModule(reinterpret_cast<const char *>(libpath.c_str())).value();
std::cout << "[*] Loaded Module into Current Process: " << cur_loaded_mod.to_string() << std::endl;

separator();

auto loaded_mod = LM::LoadModule(&process, libpath.c_str()).value();
auto loaded_mod = LM::LoadModule(&process, reinterpret_cast<const char *>(libpath.c_str())).value();
std::cout << "[*] Loaded Module into Remote Process: " << loaded_mod.to_string() << std::endl;

separator();
Expand Down

0 comments on commit 5707ca4

Please sign in to comment.