fix libc call from i8 to u8

This commit is contained in:
Henry Jiang 2024-10-30 09:17:44 -04:00
parent 298c7462c3
commit a43a37c706

View File

@ -84,7 +84,7 @@ fn current_dll_path() -> Result<PathBuf, String> {
loop {
if libc::loadquery(
libc::L_GETINFO,
buffer.as_mut_ptr() as *mut i8,
buffer.as_mut_ptr() as *mut u8,
(std::mem::size_of::<libc::ld_info>() * buffer.len()) as u32,
) >= 0
{