[NTUSER][USER32_APITEST] TrackPopupMenuEx: Check flags (#8094)

Validate flags.
JIRA issue: CORE-3247
- In NtUserTrackPopupMenuEx function, validate the flags.
- If validation failed, then set last error and return FALSE.
- Add SAL annotations to NtUserTrackPopupMenuEx.
- Keep reference to menu in the function.
- Add TrackPopupMenuEx testcase to user32_apitest.
This commit is contained in:
Katayama Hirofumi MZ 2025-06-10 21:25:14 +09:00 committed by GitHub
parent 4cf350a716
commit 3c35117f97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 395 additions and 27 deletions

View file

@ -1425,12 +1425,12 @@ NtUserThunkedMenuItemInfo(
BOOL
NTAPI
NtUserTrackPopupMenuEx(
HMENU hmenu,
UINT fuFlags,
int x,
int y,
HWND hwnd,
LPTPMPARAMS lptpm);
_In_ HMENU hMenu,
_In_ UINT fuFlags,
_In_ INT x,
_In_ INT y,
_In_ HWND hwnd,
_In_opt_ LPTPMPARAMS lptpm);
HKL
NTAPI