mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
[NTUSER] Fix IntDefWindowProc()'s WM_MOUSEACTIVATE case (#7038)
CORE-17545
Clang 13.0.1 was warning about broken 'Ret' handling.
Also remove an unrelated redundant 'else ...'.
Addendum to commit 6dfa71c487
(r68904).
This commit is contained in:
parent
5385f32794
commit
c6298321a3
1 changed files with 6 additions and 4 deletions
|
@ -566,7 +566,6 @@ IntDefWindowProc(
|
|||
lResult = (LRESULT) (Wnd->strName.Length / sizeof(WCHAR));
|
||||
}
|
||||
}
|
||||
else lResult = 0L;
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -1038,12 +1037,15 @@ IntDefWindowProc(
|
|||
case WM_MOUSEACTIVATE:
|
||||
if (Wnd->style & WS_CHILD)
|
||||
{
|
||||
LONG Ret;
|
||||
HWND hwndParent;
|
||||
PWND pwndParent = IntGetParent(Wnd);
|
||||
hwndParent = pwndParent ? UserHMGetHandle(pwndParent) : NULL;
|
||||
if (hwndParent) Ret = co_IntSendMessage(hwndParent, WM_MOUSEACTIVATE, wParam, lParam);
|
||||
if (Ret) return (Ret);
|
||||
if (hwndParent)
|
||||
{
|
||||
lResult = co_IntSendMessage(hwndParent, WM_MOUSEACTIVATE, wParam, lParam);
|
||||
if (lResult)
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ( (HIWORD(lParam) == WM_LBUTTONDOWN && LOWORD(lParam) == HTCAPTION) ? MA_NOACTIVATE : MA_ACTIVATE );
|
||||
|
||||
|
|
Loading…
Reference in a new issue