Since MSVC is more strict about the types that we try to do a compare, cast old_ptr as HWND, as we know that it is a pointer... https://bugzilla.gnome.org/show_bug.cgi?id=733768