Skip to content

Commit

Permalink
fix(wgl): use .is_null() instead of == std::ptr::null()
Browse files Browse the repository at this point in the history
  • Loading branch information
SK83RJOSH committed Sep 22, 2024
1 parent 44f2ec1 commit 16362ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glutin/src/api/wgl/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ impl Display {
attrs.as_ptr(),
)
};
if hbuf == std::ptr::null() {
if hbuf.is_null() {
return Err(IoError::last_os_error().into());
}

let hdc = unsafe { extra.GetPbufferDCARB(hbuf) };
if hdc == std::ptr::null() {
if hdc.is_null() {
return Err(IoError::last_os_error().into());
}

Expand Down

0 comments on commit 16362ec

Please sign in to comment.