VirtualBox

Changeset 107887 in vbox


Ignore:
Timestamp:
Jan 22, 2025 11:02:17 AM (2 weeks ago)
Author:
vboxsync
Message:

GuestHost/installation/VBoxWinDrvInst.cpp: Fixed warnings found by Parfait (unused assignment + unused function). jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/installation/VBoxWinDrvInst.cpp

    r107825 r107887  
    283283}
    284284
     285#if 0 /* Unused */
    285286/**
    286287 * Logs an error message but ignores (skips) the error count.
     
    317318    return rc;
    318319}
     320#endif /* Unused */
    319321
    320322/**
     
    13941396                    rc = vboxWinDrvInstLogLastError(pCtx, "GetFullPathNameW() failed");
    13951397
    1396                 rc = vboxWinDrvTryInfSection(pCtx,
    1397                                              pParms->pwszInfFile, pParms->u.UnInstall.pwszSection,
    1398                                              vboxWinDrvInstallTryInfSectionCallback);
     1398                if (RT_SUCCESS(rc))
     1399                    rc = vboxWinDrvTryInfSection(pCtx,
     1400                                                 pParms->pwszInfFile, pParms->u.UnInstall.pwszSection,
     1401                                                 vboxWinDrvInstallTryInfSectionCallback);
    13991402            }
    14001403
     
    22042207    if (RT_SUCCESS(rc) && pszSection) /* pszSection is optional. */
    22052208        rc = RTStrToUtf16(pszSection, &pCtx->Parms.u.ExecuteInf.pwszSection);
     2209    AssertRCReturn(rc, rc);
    22062210
    22072211    pCtx->Parms.enmMode = fInstall ? VBOXWINDRVINSTMODE_INSTALL_INFSECTION : VBOXWINDRVINSTMODE_UNINSTALL_INFSECTION;
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