fix: cast handle as mutable

This commit is contained in:
zhom
2025-12-21 15:16:59 +04:00
parent 8bf40fbc62
commit b4b7609534
+1 -1
View File
@@ -306,7 +306,7 @@ fn acquire_file_lock(lock_path: &PathBuf) -> Result<FileLockGuard, Box<dyn std::
use windows::Win32::Storage::FileSystem::LOCKFILE_FAIL_IMMEDIATELY;
use windows::Win32::System::IO::OVERLAPPED;
let handle = HANDLE(file.as_raw_handle() as isize);
let handle = HANDLE(file.as_raw_handle() as *mut core::ffi::c_void);
unsafe {
let mut overlapped: OVERLAPPED = std::mem::zeroed();
if LockFileEx(