VirtualBox

Changeset 456 in vbox for trunk/src


Ignore:
Timestamp:
Jan 31, 2007 12:08:36 AM (18 years ago)
Author:
vboxsync
Message:

Don't crash if a key is pressed before everything is initialized. (just ignore the key)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/KeyboardImpl.cpp

    r1 r456  
    8585STDMETHODIMP Keyboard::PutScancode(LONG scancode)
    8686{
     87    if (!mpDrv)
     88        return S_OK;
     89
    8790    int rcVBox = mpDrv->pUpPort->pfnPutEvent(mpDrv->pUpPort, (uint8_t)scancode);
    88 
    8991    if (VBOX_FAILURE (rcVBox))
    9092        return E_FAIL;
     
    109111    if (!scancodes)
    110112        return E_INVALIDARG;
     113    if (!mpDrv)
     114        return S_OK;
    111115
    112116    LONG *currentScancode = scancodes;
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