VirtualBox

Changeset 38411 in vbox


Ignore:
Timestamp:
Aug 11, 2011 9:40:35 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73448
Message:

Additions/VBoxService: don't fail if VbglR3GetSessionId() does not work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r35036 r38411  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    568568
    569569    rc =  VbglR3GetSessionId(&g_idSession);
    570     AssertRCReturn(rc, rc);
     570    if (RT_FAILURE(rc))
     571    {
     572        if (rc == VERR_IO_GEN_FAILURE)
     573            VBoxServiceVerbose(0, "PageSharing: Page sharing support is not available by the host\n");
     574        else
     575            VBoxServiceError("VBoxServicePageSharingInit: Failed with rc=%Rrc\n", rc);
     576
     577        rc = VERR_SERVICE_DISABLED;
     578
     579        RTSemEventMultiDestroy(g_PageSharingEvent);
     580        g_PageSharingEvent = NIL_RTSEMEVENTMULTI;
     581
     582    }
    571583#endif
    572584
    573     /* Never fail here. */
    574     return VINF_SUCCESS;
     585    return rc;
    575586}
    576587
Note: See TracChangeset for help on using the changeset viewer.

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