mirror of
https://github.com/ivall/xcl.git
synced 2026-11-24 05:14:57 +01:00
Merge pull request #92 from ozimchuk/wine-keep-last-error
This commit is contained in:
@@ -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) };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user