xace: forgot one of the hook call arguments. Add it.

This commit is contained in:
Eamon Walsh 2007-04-03 15:23:56 -04:00 committed by Eamon Walsh
parent 353e19fd5e
commit 14aea12cad

View File

@ -731,7 +731,8 @@ CreateWindow(Window wid, WindowPtr pParent, int x, int y, unsigned w,
/* security creation/labeling check
*/
if (!XaceHook(XACE_RESOURCE_ACCESS, wid, RT_WINDOW, DixCreateAccess, pWin))
if (!XaceHook(XACE_RESOURCE_ACCESS, client,
wid, RT_WINDOW, DixCreateAccess, pWin))
{
xfree(pWin);
*error = BadAccess;