fix pointer comparison warning.

This commit is contained in:
David Wiesen
2025-10-06 14:23:27 -07:00
parent c8ecce9e54
commit 5d1e66f7b5

View File

@@ -557,7 +557,7 @@ mod imp {
fn query_console_snapshot() -> Option<ConsoleSnapshot> {
unsafe {
let handle = GetStdHandle(STD_OUTPUT_HANDLE);
if handle.is_null() || std::ptr::eq(handle, INVALID_HANDLE_VALUE) as HANDLE {
if handle.is_null() || std::ptr::eq(handle, INVALID_HANDLE_VALUE) {
return None;
}