XQuartz: Return BadRequest when SendPSN isn't implemented rather than success
(cherry picked from commit 49871e99179d5176a1ec516c8f449e2dc219faea)
This commit is contained in:
parent
0603fbc1d3
commit
029307e79a
|
@ -500,11 +500,12 @@ ProcAppleWMSendPSN(register ClientPtr client)
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xAppleWMSendPSNReq);
|
REQUEST_SIZE_MATCH(xAppleWMSendPSNReq);
|
||||||
|
|
||||||
if(appleWMProcs->SendPSN) {
|
if(!appleWMProcs->SendPSN)
|
||||||
err = appleWMProcs->SendPSN(stuff->psn_hi, stuff->psn_lo);
|
return BadRequest;
|
||||||
if (err != Success) {
|
|
||||||
return err;
|
err = appleWMProcs->SendPSN(stuff->psn_hi, stuff->psn_lo);
|
||||||
}
|
if (err != Success) {
|
||||||
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (client->noClientException);
|
return (client->noClientException);
|
||||||
|
|
Loading…
Reference in New Issue