8377183: Impossible or redundant condition in AwtFrame::_NotifyModalBlocked of awt_Frame.cpp:1635

Reviewed-by: serb, prr
This commit is contained in:
Damon Nguyen 2026-02-11 00:55:17 +00:00
parent 7bc2475962
commit 3de6dbab14

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -1632,7 +1632,7 @@ void AwtFrame::_NotifyModalBlocked(void *param)
}
}
if ((f != NULL) && ::IsWindow(f->GetHWnd()))
if (::IsWindow(f->GetHWnd()))
{
// get an HWND of the toplevel window this embedded frame is within
HWND fHWnd = f->GetHWnd();