VirtualBox

Changeset 107822 in vbox


Ignore:
Timestamp:
Jan 16, 2025 3:09:22 PM (6 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166991
Message:

Windows driver installation/VBoxWinDrvInst.cpp: Removed a case in vboxWinDrvUninstallFromDriverStore() which never can be reached, minimal reshuffling for better readability.

File:
1 edited

Legend:

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

    r107767 r107822  
    16871687        {
    16881688            vboxWinDrvInstLogVerbose(pCtx, 1, "Using DiUninstallDriverW()");
     1689
    16891690            BOOL fReboot = FALSE;
    16901691            if (!(pParms->fFlags & VBOX_WIN_DRIVERINSTALL_F_DRYRUN))
     
    17081709            vboxWinDrvInstLogVerbose(pCtx, 1, "Using SetupUninstallOEMInfW()");
    17091710
    1710             DWORD dwUninstallFlags = 0;
    1711             if (pParms->fFlags & VBOX_WIN_DRIVERINSTALL_F_FORCE)
    1712                 dwUninstallFlags |= SUOI_FORCEDELETE;
    1713 
    17141711            if (!(pParms->fFlags & VBOX_WIN_DRIVERINSTALL_F_DRYRUN))
     1712            {
     1713                DWORD dwUninstallFlags = 0;
     1714                if (pParms->fFlags & VBOX_WIN_DRIVERINSTALL_F_FORCE)
     1715                    dwUninstallFlags |= SUOI_FORCEDELETE;
     1716
     1717                /* Takes the oemXXX.inf file (without a path), as found in the Windows INF directory. */
    17151718                fRc = g_pfnSetupUninstallOEMInfW(pCur->wszInfFile, dwUninstallFlags, NULL /* pReserved */);
    1716             else
    1717                 fRc = FALSE;
     1719            }
    17181720        }
    17191721
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