comparison src/menubar-msw.c @ 396:6719134a07c2 r21-2-13

Import from CVS: tag r21-2-13
author cvs
date Mon, 13 Aug 2007 11:12:05 +0200
parents bbff43aa5eb7
children 74fd4e045ea6
comparison
equal deleted inserted replaced
395:de2c2a7459d2 396:6719134a07c2
141 while ((ptr=memchr (ptr, '&', ll-(ptr-buf))) != NULL) 141 while ((ptr=memchr (ptr, '&', ll-(ptr-buf))) != NULL)
142 { 142 {
143 if (ll+2 >= MAX_MENUITEM_LENGTH) 143 if (ll+2 >= MAX_MENUITEM_LENGTH)
144 signal_simple_error ("Menu item produces too long displayable string", 144 signal_simple_error ("Menu item produces too long displayable string",
145 pgui_item->name); 145 pgui_item->name);
146 memmove (ptr+1, ptr, ll-(ptr-buf)); 146 memmove (ptr+1, ptr, (ll-(ptr-buf))+1);
147 ll++; 147 ll++;
148 ptr+=2; 148 ptr+=2;
149 } 149 }
150 150
151 /* Replace XEmacs accelerator '%_' with Windows accelerator '&' */ 151 /* Replace XEmacs accelerator '%_' with Windows accelerator '&' */