vbox的更動 11268 路徑 trunk/src/VBox/Devices/Input/DevPS2.cpp
- 時間撮記:
- 2008-8-8 下午04:17:22 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Input/DevPS2.cpp
r11266 r11268 1120 1120 cItems = s->queue.count; 1121 1121 SSMR3PutU32(f, cItems); 1122 for (i = s->queue.rptr; cItems-- > 0; i = (i + 1) % ELEMENTS(s->queue.data))1122 for (i = s->queue.rptr; cItems-- > 0; i = (i + 1) % RT_ELEMENTS(s->queue.data)) 1123 1123 SSMR3PutU8(f, s->queue.data[i]); 1124 1124 Log(("kbd_save: %d keyboard queue items stored\n", s->queue.count)); … … 1126 1126 cItems = s->mouse_command_queue.count; 1127 1127 SSMR3PutU32(f, cItems); 1128 for (i = s->mouse_command_queue.rptr; cItems-- > 0; i = (i + 1) % ELEMENTS(s->mouse_command_queue.data))1128 for (i = s->mouse_command_queue.rptr; cItems-- > 0; i = (i + 1) % RT_ELEMENTS(s->mouse_command_queue.data)) 1129 1129 SSMR3PutU8(f, s->mouse_command_queue.data[i]); 1130 1130 Log(("kbd_save: %d mouse command queue items stored\n", s->mouse_command_queue.count)); … … 1132 1132 cItems = s->mouse_event_queue.count; 1133 1133 SSMR3PutU32(f, cItems); 1134 for (i = s->mouse_event_queue.rptr; cItems-- > 0; i = (i + 1) % ELEMENTS(s->mouse_event_queue.data))1134 for (i = s->mouse_event_queue.rptr; cItems-- > 0; i = (i + 1) % RT_ELEMENTS(s->mouse_event_queue.data)) 1135 1135 SSMR3PutU8(f, s->mouse_event_queue.data[i]); 1136 1136 Log(("kbd_save: %d mouse event queue items stored\n", s->mouse_event_queue.count)); … … 1188 1188 if (RT_FAILURE(rc)) 1189 1189 return rc; 1190 if (u32 > ELEMENTS(s->queue.data))1190 if (u32 > RT_ELEMENTS(s->queue.data)) 1191 1191 { 1192 1192 AssertMsgFailed(("u32=%#x\n", u32)); … … 1199 1199 return rc; 1200 1200 } 1201 s->queue.wptr = u32 % ELEMENTS(s->queue.data);1201 s->queue.wptr = u32 % RT_ELEMENTS(s->queue.data); 1202 1202 s->queue.count = u32; 1203 1203 Log(("kbd_load: %d keyboard queue items loaded\n", u32)); … … 1206 1206 if (RT_FAILURE(rc)) 1207 1207 return rc; 1208 if (u32 > ELEMENTS(s->mouse_command_queue.data))1208 if (u32 > RT_ELEMENTS(s->mouse_command_queue.data)) 1209 1209 { 1210 1210 AssertMsgFailed(("u32=%#x\n", u32)); … … 1217 1217 return rc; 1218 1218 } 1219 s->mouse_command_queue.wptr = u32 % ELEMENTS(s->mouse_command_queue.data);1219 s->mouse_command_queue.wptr = u32 % RT_ELEMENTS(s->mouse_command_queue.data); 1220 1220 s->mouse_command_queue.count = u32; 1221 1221 Log(("kbd_load: %d mouse command queue items loaded\n", u32)); … … 1224 1224 if (RT_FAILURE(rc)) 1225 1225 return rc; 1226 if (u32 > ELEMENTS(s->mouse_event_queue.data))1226 if (u32 > RT_ELEMENTS(s->mouse_event_queue.data)) 1227 1227 { 1228 1228 AssertMsgFailed(("u32=%#x\n", u32)); … … 1235 1235 return rc; 1236 1236 } 1237 s->mouse_event_queue.wptr = u32 % ELEMENTS(s->mouse_event_queue.data);1237 s->mouse_event_queue.wptr = u32 % RT_ELEMENTS(s->mouse_event_queue.data); 1238 1238 s->mouse_event_queue.count = u32; 1239 1239 Log(("kbd_load: %d mouse event queue items loaded\n", u32));
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器