Compare commits

...
Author SHA1 Message Date
zhomandGitHub bcca0b9a3a Merge pull request #163 from zhom/contributors-readme-action-5rZu3uw-9_
docs(contributor): contributors readme action update
2025-12-21 17:32:14 +02:00
github-actions[bot]andGitHub f4d9ca02be docs(contributor): contrib-readme-action has updated readme 2025-12-21 15:30:21 +00:00
zhom 57d91d9ab2 refactor: store handle in a variable instead of casting 2025-12-21 19:30:06 +04:00
2 changed files with 9 additions and 1 deletions
+7
View File
@@ -92,6 +92,13 @@ Have questions or want to contribute? We'd love to hear from you!
<br />
<sub><b>zhom</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/JorySeverijnse">
<img src="https://avatars.githubusercontent.com/u/117462355?v=4" width="100;" alt="JorySeverijnse"/>
<br />
<sub><b>Jory Severijnse</b></sub>
</a>
</td>
</tr>
<tbody>
+2 -1
View File
@@ -306,7 +306,8 @@ 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 *mut core::ffi::c_void);
let raw_handle = file.as_raw_handle();
let handle = HANDLE(raw_handle);
unsafe {
let mut overlapped: OVERLAPPED = std::mem::zeroed();
if LockFileEx(