VirtualBox

Changeset 22746 in vbox


Ignore:
Timestamp:
Sep 3, 2009 1:15:11 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51891
Message:

ConsoleImpl2.cpp: SysprepArgs and SysprepExec should be set before we pull over properties from the server I think. Otherwise they will overwrite any values found in the saved state.

File:
1 edited

Legend:

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

    r22603 r22746  
    28202820    else
    28212821    {
    2822         /* Pull over the properties from the server. */
     2822        /*
     2823         * Initialize built-in properties that can be changed and saved.
     2824         *
     2825         * These are typically transient properties that the guest cannot
     2826         * change.
     2827         */
     2828
     2829        /* Sysprep execution by VBoxService. */
     2830        configSetProperty(pConsole->mVMMDev,
     2831                          "/VirtualBox/HostGuest/SysprepExec", "",
     2832                          "TRANSIENT, RDONLYGUEST");
     2833        configSetProperty(pConsole->mVMMDev,
     2834                          "/VirtualBox/HostGuest/SysprepArgs", "",
     2835                          "TRANSIENT, RDONLYGUEST");
     2836
     2837        /*
     2838         * Pull over the properties from the server.
     2839         */
    28232840        SafeArray<BSTR> namesOut;
    28242841        SafeArray<BSTR> valuesOut;
     
    28892906        AssertRCReturn(rc, rc);
    28902907
     2908        /*
     2909         * Set properties which cannot be saved.
     2910         */
    28912911        /* Set the VBox version string as a guest property */
    28922912        configSetProperty(pConsole->mVMMDev, "/VirtualBox/HostInfo/VBoxVer",
     
    28952915        configSetProperty(pConsole->mVMMDev, "/VirtualBox/HostInfo/VBoxRev",
    28962916                          RTBldCfgRevisionStr(), "TRANSIENT, RDONLYGUEST");
    2897         /* Initialize the remote execution properties for ready-on access by
    2898          * the guest */
    2899         configSetProperty(pConsole->mVMMDev,
    2900                           "/VirtualBox/HostGuest/SysprepArgs", "",
    2901                           "TRANSIENT, RDONLYGUEST");
    2902 
    2903         /* Register the host notification callback */
     2917
     2918        /*
     2919         * Register the host notification callback
     2920         */
    29042921        HGCMSVCEXTHANDLE hDummy;
    2905         HGCMHostRegisterServiceExtension (&hDummy, "VBoxGuestPropSvc",
    2906                                           Console::doGuestPropNotification,
    2907                                           pvConsole);
     2922        HGCMHostRegisterServiceExtension(&hDummy, "VBoxGuestPropSvc",
     2923                                         Console::doGuestPropNotification,
     2924                                         pvConsole);
    29082925
    29092926        Log(("Set VBoxGuestPropSvc property store\n"));
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