remove unneeded change

This commit is contained in:
Junkui Zhang 2025-07-30 23:29:32 +08:00
parent 345fd526fc
commit 6a91ac26d7

View file

@ -436,8 +436,7 @@ impl Platform for WindowsPlatform {
handle: AnyWindowHandle,
options: WindowParams,
) -> Result<Box<dyn PlatformWindow>> {
let window = WindowsWindow::new(handle, options, self.generate_creation_info())
.inspect_err(|err| show_error("Failed to open new window", err.to_string()))?;
let window = WindowsWindow::new(handle, options, self.generate_creation_info())?;
let handle = window.get_raw_handle();
self.raw_window_handles.write().push(handle);