Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NativeCore/Unix/EnumerateRemoteSectionsAndModules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern "C" void RC_CallConv EnumerateRemoteSectionsAndModules(RC_Pointer handle,
RC_UnicodeChar Path[PATH_MAXIMUM_LENGTH] = {};
};

std::ifstream input(static_cast<std::stringstream&>(std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str());
std::ifstream input((std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str());

std::unordered_map<int, ModuleInfo> modules;

Expand Down
6 changes: 3 additions & 3 deletions ReClass.NET/Native/NativeMethods.Unix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ internal class NativeMethodsUnix : INativeMethods

private const int RTLD_NOW = 2;

[DllImport("libdl.so")]
[DllImport("__Internal")]
private static extern IntPtr dlopen(string fileName, int flags);

[DllImport("libdl.so")]
[DllImport("__Internal")]
private static extern IntPtr dlsym(IntPtr handle, string symbol);

[DllImport("libdl.so")]
[DllImport("__Internal")]
private static extern int dlclose(IntPtr handle);

#endregion
Expand Down