--- sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hookdll.c 2006/03/09 16:13:26 1081 +++ sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hookdll.c 2006/03/09 16:27:59 1082 @@ -85,7 +85,9 @@ style = GetWindowLong(hwnd, GWL_STYLE); - if (style & WS_CHILD) + /* Docs say that WS_CHILD and WS_POPUP is an illegal combination, + but they exist nonetheless. */ + if ((style & WS_CHILD) && !(style & WS_POPUP)) goto end; switch (msg)