VirtualBox

Changeset 23248 in vbox for trunk/src/VBox


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

VBoxServiceExec.cpp: r=bird: drop the if (RT_FAILURE(rc)) since all you wish to do is write SysprepVBoxRC in the VERR_FILE_NOT_FOUND case as well.

File:
1 edited

Legend:

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

    r23247 r23248  
    429429            }
    430430
    431             if (RT_FAILURE(rc))
    432             {
    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 
    445             /* Let the host know what happend (but only if we got a guest property value) */
     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)
     437            {
     438                VBoxServiceVerbose(1, "Exec: Stopping sysprep processing (rc=%Rrc)\n", rc);
     439                fSysprepDone = true;
     440            }
     441
     442            /*
     443             * Always let the host know what happend, except when the guest property
     444             * value is empty/missing.
     445            */
    446446            if (rc != VERR_NOT_FOUND)
    447447            {
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