VirtualBox

Ignore:
Timestamp:
Sep 23, 2009 9:10:07 AM (15 years ago)
Author:
vboxsync
Message:

VBoxService: Exec: Also let host know the status if successful.

File:
1 edited

Legend:

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

    r23227 r23247  
    441441                    fSysprepDone = true;
    442442                }
    443 
    444                 /* Let the host know what went wrong (but only if we got a value) */
    445                 if (rc != VERR_NOT_FOUND)
    446                 {
    447                     rc = VbglR3GuestPropWriteValueF(g_uExecGuestPropSvcClientID, "/VirtualBox/HostGuest/SysprepVBoxRC", "%d", rc);
    448                     if (RT_FAILURE(rc))
    449                         VBoxServiceError("Exec: Failed to write SysprepVBoxRC: rc=%Rrc\n", rc);
    450                 }
     443            }
     444
     445            /* Let the host know what happend (but only if we got a guest property value) */
     446            if (rc != VERR_NOT_FOUND)
     447            {
     448                rc = VbglR3GuestPropWriteValueF(g_uExecGuestPropSvcClientID, "/VirtualBox/HostGuest/SysprepVBoxRC", "%d", rc);
     449                if (RT_FAILURE(rc))
     450                    VBoxServiceError("Exec: Failed to write SysprepVBoxRC: rc=%Rrc\n", rc);
    451451            }
    452452        }
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