VirtualBox

Changeset 23227 in vbox for trunk


Ignore:
Timestamp:
Sep 22, 2009 4:16:13 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52698
Message:

VBoxService: Sysprep: Let the host know if we didn't find sysprep.exe

File:
1 edited

Legend:

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

    r22863 r23227  
    429429            }
    430430
    431             /*
    432              * Only continue polling if the guest property value is empty/missing
    433              * or if the sysprep command is missing.
    434              */
    435             if (    rc != VERR_NOT_FOUND
    436                 &&  rc != VERR_FILE_NOT_FOUND)
     431            if (RT_FAILURE(rc))
    437432            {
    438                 VBoxServiceVerbose(1, "Exec: Stopping sysprep processing (rc=%Rrc)\n", rc);
    439                 rc = VbglR3GuestPropWriteValueF(g_uExecGuestPropSvcClientID, "/VirtualBox/HostGuest/SysprepVBoxRC", "%d", rc);
    440                 if (RT_FAILURE(rc))
    441                     VBoxServiceError("Exec: Failed to write SysprepVBoxRC: rc=%Rrc\n", rc);
    442                 fSysprepDone = true;
     433                /*
     434                 * Only continue polling if the guest property value is empty/missing
     435                 * or if the sysprep command is missing.
     436                 */
     437                if (    rc != VERR_NOT_FOUND
     438                    &&  rc != VERR_FILE_NOT_FOUND)
     439                {
     440                    VBoxServiceVerbose(1, "Exec: Stopping sysprep processing (rc=%Rrc)\n", rc);
     441                    fSysprepDone = true;
     442                }
     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                }
    443451            }
    444452        }
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