mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[NtUser]
- Fix breakage due to WM_NCPAINT call. Duplicate check for draw caption bar Justin Case. svn path=/trunk/; revision=72181
This commit is contained in:
parent
824b41c0b2
commit
831a53f80f
1 changed files with 2 additions and 2 deletions
|
@ -944,7 +944,7 @@ VOID UserDrawCaptionBar(
|
|||
if (!(Style & WS_MINIMIZE))
|
||||
{
|
||||
/* Draw menu bar */
|
||||
if (pWnd->state & WNDS_HASMENU)
|
||||
if (pWnd->state & WNDS_HASMENU && pWnd->IDMenu) // Should be pWnd->spmenu
|
||||
{
|
||||
PMENU menu = UserGetMenuObject(UlongToHandle(pWnd->IDMenu)); // FIXME!
|
||||
TempRect = CurrentRect;
|
||||
|
@ -1113,7 +1113,7 @@ NC_DoNCPaint(PWND pWnd, HDC hDC, INT Flags)
|
|||
if (!(Style & WS_MINIMIZE))
|
||||
{
|
||||
/* Draw menu bar */
|
||||
if (pWnd->state & WNDS_HASMENU)
|
||||
if (pWnd->state & WNDS_HASMENU && pWnd->IDMenu) // Should be pWnd->spmenu
|
||||
{
|
||||
if (!(Flags & DC_NOSENDMSG))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue