Ticket #1686: input-server-method.diff
File input-server-method.diff, 764 bytes (added by , 17 years ago) |
---|
-
src/servers/input/InputServerMethod.cpp
159 159 fMenu(NULL) 160 160 { 161 161 fName = strdup(name); 162 memcpy(fIcon, icon, 16*16*1); 162 if (icon != NULL) 163 memcpy(fIcon, icon, 16*16*1); 164 else 165 memset(fIcon, 0x1d, 16*16*1); 163 166 } 164 167 165 168 … … 193 196 _BMethodAddOn_::SetIcon(const uchar* icon) 194 197 { 195 198 CALLED(); 196 memcpy(fIcon, icon, 16*16*1);197 199 200 if (icon != NULL) 201 memcpy(fIcon, icon, 16*16*1); 202 else 203 memset(fIcon, 0x1d, 16*16*1); 204 198 205 BMessage msg(IS_UPDATE_ICON); 199 206 msg.AddInt32("cookie", (uint32)fMethod); 200 207 msg.AddData("icon", B_RAW_TYPE, icon, 16*16*1);