VirtualBox

Changeset 34303 in vbox


Ignore:
Timestamp:
Nov 23, 2010 5:39:20 PM (14 years ago)
Author:
vboxsync
Message:

Main/Keyboard: cannot resize weakly attached safearrays, need to create a real copy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/KeyboardImpl.cpp

    r34288 r34303  
    216216
    217217    /* Only signal the keys in the event which have been actually sent. */
    218     keys.resize(sent);
     218    com::SafeArray<LONG> keysSent(sent);
     219    memcpy(keysSent.raw(), keys.raw(), sent*sizeof(LONG));
    219220    VBoxEventDesc evDesc;
    220221    evDesc.init(mEventSource, VBoxEventType_OnGuestKeyboardEvent, ComSafeArrayAsInParam(keys));
Note: See TracChangeset for help on using the changeset viewer.

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