Merge pull request #92 from ozimchuk/wine-keep-last-error

This commit is contained in:
ivall
2026-11-23 11:57:05 +01:00
+2
View File
@@ -39,7 +39,9 @@ impl Guard {
}
impl Drop for Guard {
fn drop(&mut self) {
let e = unsafe { windows_sys::Win32::Foundation::GetLastError() };
IN_HOOK.with(|c| c.set(false));
unsafe { windows_sys::Win32::Foundation::SetLastError(e) };
}
}