XQuartz: Return BadRequest when SendPSN isn't implemented rather than success
(cherry picked from commit 49871e9917
)
This commit is contained in:
parent
88291ace66
commit
3303d930ea
|
@ -512,11 +512,12 @@ ProcAppleWMSendPSN(register ClientPtr client)
|
|||
|
||||
REQUEST_SIZE_MATCH(xAppleWMSendPSNReq);
|
||||
|
||||
if(appleWMProcs->SendPSN) {
|
||||
err = appleWMProcs->SendPSN(stuff->psn_hi, stuff->psn_lo);
|
||||
if (err != Success) {
|
||||
return err;
|
||||
}
|
||||
if(!appleWMProcs->SendPSN)
|
||||
return BadRequest;
|
||||
|
||||
err = appleWMProcs->SendPSN(stuff->psn_hi, stuff->psn_lo);
|
||||
if (err != Success) {
|
||||
return err;
|
||||
}
|
||||
|
||||
return (client->noClientException);
|
||||
|
|
Loading…
Reference in New Issue
Block a user