mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
WSEventLoop: Treat invalid window types the same as unknown window types
And forcefully disconnect the client in both cases.
This commit is contained in:
parent
559a999852
commit
bee4544192
1 changed files with 1 additions and 4 deletions
|
@ -212,10 +212,7 @@ bool WSEventLoop::on_receive_from_client(int client_id, const WSAPI_ClientMessag
|
||||||
ws_window_type = WSWindowType::Menubar;
|
ws_window_type = WSWindowType::Menubar;
|
||||||
break;
|
break;
|
||||||
case WSAPI_WindowType::Invalid:
|
case WSAPI_WindowType::Invalid:
|
||||||
break; // handled below
|
default:
|
||||||
}
|
|
||||||
|
|
||||||
if (ws_window_type == WSWindowType::Invalid) {
|
|
||||||
dbgprintf("Unknown WSAPI_WindowType: %d\n", message.window.type);
|
dbgprintf("Unknown WSAPI_WindowType: %d\n", message.window.type);
|
||||||
client.did_misbehave();
|
client.did_misbehave();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue