View | Details | Raw Unified | Return to bug 824294
Collapse All | Expand All

(-)a/src/xkb/XKBGetMap.c (-1 / +3 lines)
Lines 425-430 xkbVModMapWireDesc * wire; Link Here
425
XkbServerMapPtr		srv;
425
XkbServerMapPtr		srv;
426
426
427
    if ( rep->totalVModMapKeys>0 ) {
427
    if ( rep->totalVModMapKeys>0 ) {
428
	if (((int) rep->firstVModMapKey + rep->nVModMapKeys)
429
	     > xkb->max_key_code)
430
	    return BadLength;
428
	if (((xkb->server==NULL)||(xkb->server->vmodmap==NULL))&&
431
	if (((xkb->server==NULL)||(xkb->server->vmodmap==NULL))&&
429
	    (XkbAllocServerMap(xkb,XkbVirtualModMapMask,0)!=Success)) {
432
	    (XkbAllocServerMap(xkb,XkbVirtualModMapMask,0)!=Success)) {
430
	    return BadAlloc;
433
	    return BadAlloc;
431
- 

Return to bug 824294