VirtualBox

忽略:
時間撮記:
2008-8-8 下午04:17:22 (16 年 以前)
作者:
vboxsync
訊息:

Devices: ELEMENTS -> RT_ELEMENTS.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Input/DevPS2.cpp

    r11266 r11268  
    11201120    cItems = s->queue.count;
    11211121    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))
    11231123        SSMR3PutU8(f, s->queue.data[i]);
    11241124    Log(("kbd_save: %d keyboard queue items stored\n", s->queue.count));
     
    11261126    cItems = s->mouse_command_queue.count;
    11271127    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))
    11291129        SSMR3PutU8(f, s->mouse_command_queue.data[i]);
    11301130    Log(("kbd_save: %d mouse command queue items stored\n", s->mouse_command_queue.count));
     
    11321132    cItems = s->mouse_event_queue.count;
    11331133    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))
    11351135        SSMR3PutU8(f, s->mouse_event_queue.data[i]);
    11361136    Log(("kbd_save: %d mouse event queue items stored\n", s->mouse_event_queue.count));
     
    11881188    if (RT_FAILURE(rc))
    11891189        return rc;
    1190     if (u32 > ELEMENTS(s->queue.data))
     1190    if (u32 > RT_ELEMENTS(s->queue.data))
    11911191    {
    11921192        AssertMsgFailed(("u32=%#x\n", u32));
     
    11991199            return rc;
    12001200    }
    1201     s->queue.wptr = u32 % ELEMENTS(s->queue.data);
     1201    s->queue.wptr = u32 % RT_ELEMENTS(s->queue.data);
    12021202    s->queue.count = u32;
    12031203    Log(("kbd_load: %d keyboard queue items loaded\n", u32));
     
    12061206    if (RT_FAILURE(rc))
    12071207        return rc;
    1208     if (u32 > ELEMENTS(s->mouse_command_queue.data))
     1208    if (u32 > RT_ELEMENTS(s->mouse_command_queue.data))
    12091209    {
    12101210        AssertMsgFailed(("u32=%#x\n", u32));
     
    12171217            return rc;
    12181218    }
    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);
    12201220    s->mouse_command_queue.count = u32;
    12211221    Log(("kbd_load: %d mouse command queue items loaded\n", u32));
     
    12241224    if (RT_FAILURE(rc))
    12251225        return rc;
    1226     if (u32 > ELEMENTS(s->mouse_event_queue.data))
     1226    if (u32 > RT_ELEMENTS(s->mouse_event_queue.data))
    12271227    {
    12281228        AssertMsgFailed(("u32=%#x\n", u32));
     
    12351235            return rc;
    12361236    }
    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);
    12381238    s->mouse_event_queue.count = u32;
    12391239    Log(("kbd_load: %d mouse event queue items loaded\n", u32));
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette