Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 30 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions platforms/windows/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ accesskit = { version = "0.23.0", path = "../../common" }
accesskit_consumer = { version = "0.33.1", path = "../../consumer" }
hashbrown.workspace = true
static_assertions = "1.1.0"
windows-core = "0.61.0"
windows-core = "0.62.0"

[dependencies.windows]
version = "0.61.1"
version = "0.62.0"
features = [
"Win32_Foundation",
"Win32_Globalization",
Expand Down
4 changes: 2 additions & 2 deletions platforms/windows/examples/hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static WINDOW_CLASS_ATOM: Lazy<u16> = Lazy::new(|| {

let atom = unsafe { RegisterClassW(&wc) };
if atom == 0 {
panic!("{}", Error::from_win32());
panic!("{}", Error::from_thread());
}
atom
});
Expand Down Expand Up @@ -344,7 +344,7 @@ fn create_window(title: &str, initial_focus: NodeId) -> Result<HWND> {
)?
};
if window.is_invalid() {
return Err(Error::from_win32());
return Err(Error::from_thread());
}

Ok(window)
Expand Down
2 changes: 1 addition & 1 deletion platforms/windows/src/subclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use windows::{
use crate::{Adapter, QueuedEvents};

fn win32_error() -> ! {
panic!("{}", Error::from_win32())
panic!("{}", Error::from_thread())
}

// Work around a difference between the SetWindowLongPtrW API definition
Expand Down
4 changes: 2 additions & 2 deletions platforms/windows/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static WINDOW_CLASS_ATOM: Lazy<u16> = Lazy::new(|| {

let atom = unsafe { RegisterClassW(&wc) };
if atom == 0 {
panic!("{}", Error::from_win32());
panic!("{}", Error::from_thread());
}
atom
});
Expand Down Expand Up @@ -161,7 +161,7 @@ fn create_window(
)?
};
if window.is_invalid() {
return Err(Error::from_win32());
return Err(Error::from_thread());
}

Ok(window)
Expand Down
4 changes: 2 additions & 2 deletions platforms/windows/src/tests/subclassed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static WINDOW_CLASS_ATOM: Lazy<u16> = Lazy::new(|| {

let atom = unsafe { RegisterClassW(&wc) };
if atom == 0 {
panic!("{}", Error::from_win32());
panic!("{}", Error::from_thread());
}
atom
});
Expand All @@ -159,7 +159,7 @@ fn create_window(title: &str) -> HWND {
}
.unwrap();
if window.is_invalid() {
panic!("{}", Error::from_win32());
panic!("{}", Error::from_thread());
}

window
Expand Down
Loading