Skip to content

Commit 5707ca4

Browse files
committed
fixed dumb windows errors
1 parent 0dd78c2 commit 5707ca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cpptests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ LM_API_EXPORT int main()
192192
auto libpath = std::filesystem::current_path() / "tests" / "libtest.so";
193193
std::cout << "[*] Library Path: " << libpath << std::endl;
194194

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

198198
separator();
199199

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

203203
separator();

0 commit comments

Comments
 (0)