VirtualBox

Changeset 6658 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 31, 2008 2:32:58 PM (17 years ago)
Author:
vboxsync
Message:

VRDP server: fixed error handling if the VRDP library could not be loaded

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r6464 r6658  
    58165816                    break;
    58175817                }
     5818                case VERR_FILE_NOT_FOUND:
     5819                {
     5820                    errMsg = Utf8StrFmt (tr ("Could not load the VRDP library"));
     5821                    break;
     5822                }
    58185823                default:
    58195824                    errMsg = Utf8StrFmt (tr ("Failed to launch VRDP server (%Vrc)"),
  • trunk/src/VBox/Main/ConsoleVRDPServer.cpp

    r5999 r6658  
    10921092    AssertComRC(rc2);
    10931093
    1094     if (SUCCEEDED (rc2)
    1095         && vrdpEnabled
    1096         && loadVRDPLibrary ())
    1097     {
    1098         rc = mpfnVRDPCreateServer (&mCallbacks.header, this, (VRDPINTERFACEHDR **)&mpEntryPoints, &mhServer);
    1099 
    1100         if (VBOX_SUCCESS(rc))
    1101         {
     1094    if (SUCCEEDED (rc2) && vrdpEnabled)
     1095    {
     1096        if (loadVRDPLibrary ())
     1097        {
     1098            rc = mpfnVRDPCreateServer (&mCallbacks.header, this, (VRDPINTERFACEHDR **)&mpEntryPoints, &mhServer);
     1099
     1100            if (VBOX_SUCCESS(rc))
     1101            {
    11021102#ifdef VBOX_WITH_USB
    1103             remoteUSBThreadStart ();
     1103                remoteUSBThreadStart ();
    11041104#endif /* VBOX_WITH_USB */
     1105            }
     1106            else
     1107                AssertMsgFailed(("Could not start VRDP server: rc = %Vrc\n", rc));
    11051108        }
    11061109        else
    1107             AssertMsgFailed(("Could not start VRDP server: rc = %Vrc\n", rc));
     1110        {
     1111            AssertMsgFailed(("Could not load the VRDP library\n"));
     1112            rc = VERR_FILE_NOT_FOUND;
     1113        }
    11081114    }
    11091115#else
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