VirtualBox

Changeset 107687 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jan 10, 2025 4:36:22 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166780
Message:

src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp: Fixed warnings found by Parfait (unused assignment). jiraref:VBP-1424

File:
1 edited

Legend:

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

    r107685 r107687  
    819819            }
    820820        }
    821     }
     821
     822        if (RT_FAILURE(rc))
     823            break;
     824    } /* for */
     825
    822826    if (rc != VERR_NO_MORE_FILES)
    823827    {
     
    826830    }
    827831
    828     rc = RTDirClose(hDir);
    829     if (RT_FAILURE(rc))
     832    int rc2 = RTDirClose(hDir);
     833    if (RT_FAILURE(rc2))
    830834    {
    831835        if (!(fOutputFlags & VBOXSERVICETOOLBOXOUTPUTFLAG_PARSEABLE))
    832             RTMsgError("RTDirClose failed: %Rrc\npszDir=%.*s", rc, cchDir, pszDir);
    833     }
     836            RTMsgError("RTDirClose failed: %Rrc\npszDir=%.*s", rc2, cchDir, pszDir);
     837    }
     838
     839    if (RT_SUCCESS(rc))
     840        rc = rc2;
    834841
    835842    return rc;
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