VirtualBox

Ignore:
Timestamp:
Nov 29, 2018 1:54:46 AM (6 years ago)
Author:
vboxsync
Message:

VBoxGuestControl: Optimizing message handling - part 2. bugref:9313

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestControl/service.cpp

    r75800 r75801  
    20702070
    20712071        /*
    2072          * For all other regular commands we call our hostCallback
    2073          * function. If the current command does not support notifications,
    2074          * notifyHost will return VERR_NOT_SUPPORTED.
     2072         * Stuff the goes to various main objects:
    20752073         */
    2076         default:
     2074        case GUEST_DISCONNECTED:
     2075        case GUEST_MSG_REPLY:
     2076        case GUEST_MSG_PROGRESS_UPDATE:
     2077        case GUEST_SESSION_NOTIFY:
     2078        case GUEST_EXEC_OUTPUT:
     2079        case GUEST_EXEC_STATUS:
     2080        case GUEST_EXEC_INPUT_STATUS:
     2081        case GUEST_EXEC_IO_NOTIFY:
     2082        case GUEST_DIR_NOTIFY:
     2083        case GUEST_FILE_NOTIFY:
    20772084            rc = pThis->hostCallback(idFunction, cParms, paParms);
     2085            Assert(rc != VINF_HGCM_ASYNC_EXECUTE);
    20782086            break;
    20792087
     
    21012109            LogFlowFunc(("[Client %RU32] GUEST_MSG_FILTER_UNSET\n", idClient));
    21022110            rc = VERR_NOT_IMPLEMENTED;
     2111            break;
     2112
     2113        /*
     2114         * Anything else shall return fail with invalid function.
     2115         *
     2116         * Note! We used to return VINF_SUCCESS for these.  See bugref:9313
     2117         *       and Guest::i_notifyCtrlDispatcher().
     2118         */
     2119        default:
     2120            ASSERT_GUEST_MSG_FAILED(("idFunction=%d (%#x)\n", idFunction, idFunction));
     2121            rc = VERR_INVALID_FUNCTION;
    21032122            break;
    21042123    }
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