VirtualBox

Ignore:
Timestamp:
Oct 21, 2024 5:03:01 PM (3 months ago)
Author:
vboxsync
Message:

iprt: NT: RTFileDelete: Prevent exit status override, bugref:10776.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/nt/RTFileDelete-r3-nt.cpp

    r104285 r106572  
    171171        if (NT_SUCCESS(rcNt))
    172172        {
     173            NTSTATUS rcNt2;
     174
    173175            /*
    174176             * Recheck that this is a file and not a directory or a reparse point we
     
    202204                rc = RTErrConvertFromNtStatus(rcNt);
    203205
    204             rcNt = NtClose(hPath);
     206            rcNt2 = NtClose(hPath);
     207            if (NT_SUCCESS(rcNt))
     208                rcNt = rcNt2;
     209
    205210            if (!NT_SUCCESS(rcNt) && RT_SUCCESS_NP(rc))
    206211                rc = RTErrConvertFromNtStatus(rcNt);
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