replace wm_destroy by wm_close
This commit is contained in:
parent
45c5568c89
commit
28cdce99c0
2 changed files with 2 additions and 2 deletions
|
|
@ -282,7 +282,7 @@ impl Drop for Window {
|
|||
#[inline]
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
user32::PostMessageW(self.window.0, winapi::WM_DESTROY, 0, 0);
|
||||
user32::PostMessageW(self.window.0, winapi::WM_CLOSE, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue