Fix unsoundness on Windows (#601)

* Fix unsoundness in windows backend

* Synchronize window state properly

* update changelog and add a comment to execute_in_thread

* Formatting fixes and improve changelog message
This commit is contained in:
Andrew Hickman 2018-07-27 23:34:08 +01:00 committed by Francesca Frangipane
parent df9b23c96a
commit 21ff2e0ffc
4 changed files with 150 additions and 159 deletions

View file

@ -22,11 +22,13 @@ pub enum IconType {
Big = winuser::ICON_BIG as isize,
}
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct WinIcon {
pub handle: HICON,
}
unsafe impl Send for WinIcon {}
impl WinIcon {
#[allow(dead_code)]
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, util::WinError> {