windows: Don't log error when RedrawWindow (#37542)

Release Notes:

- N/A
This commit is contained in:
张小白
2025-09-04 14:47:17 +00:00
committed by GitHub
parent 473bbd78cc
commit a05f86f97b
+1 -3
View File
@@ -257,9 +257,7 @@ impl WindowsPlatform {
};
for hwnd in all_windows.read().iter() {
unsafe {
RedrawWindow(Some(hwnd.as_raw()), None, None, RDW_INVALIDATE)
.ok()
.log_err();
let _ = RedrawWindow(Some(hwnd.as_raw()), None, None, RDW_INVALIDATE);
}
}
}