Skip to content

Commit

Permalink
user.exe16: Try SystemUserAdapterWindowClass if UserAdapterWindowClas…
Browse files Browse the repository at this point in the history
…s could not get. (#1147)

The window class name has changed in newer versions of Windows.
  • Loading branch information
otya128 committed May 2, 2022
1 parent 9868db4 commit bedb75d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -2982,6 +2982,10 @@ BOOL16 WINAPI PeekMessage32_16( MSG32_16 *msg16, HWND16 hwnd16,
if (hmod)
{
atom_UserAdapterWindowClass = GetClassInfoA(hmod, "UserAdapterWindowClass", &c);
if (!atom_UserAdapterWindowClass)
{
atom_UserAdapterWindowClass = GetClassInfoA(hmod, "SystemUserAdapterWindowClass", &c);
}
}
}
if ((flags & PM_REMOVE) && atom_UserAdapterWindowClass != 0 && msg.hwnd != NULL && GetClassWord(msg.hwnd, GCW_ATOM) == atom_UserAdapterWindowClass)
Expand Down

0 comments on commit bedb75d

Please sign in to comment.