fix libc call from i8 to u8
This commit is contained in:
parent
298c7462c3
commit
a43a37c706
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue