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:
parent
df9b23c96a
commit
21ff2e0ffc
4 changed files with 150 additions and 159 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue