VirtualBox

Changeset 3386 in kBuild


Ignore:
Timestamp:
Jun 25, 2020 6:49:02 PM (5 years ago)
Author:
bird
Message:

ntunlink.c: Make birdMakeWritable work with non-NULL hRoot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/ntunlink.c

    r3126 r3386  
    3939
    4040
    41 static MY_NTSTATUS birdMakeWritable(MY_UNICODE_STRING *pNtPath)
     41static MY_NTSTATUS birdMakeWritable(HANDLE hRoot, MY_UNICODE_STRING *pNtPath)
    4242{
    4343    MY_NTSTATUS rcNt;
    4444    HANDLE      hFile;
    4545
    46     rcNt = birdOpenFileUniStr(NULL /*hRoot*/,
     46    rcNt = birdOpenFileUniStr(hRoot,
    4747                              pNtPath,
    4848                              FILE_WRITE_ATTRIBUTES | FILE_READ_ATTRIBUTES | SYNCHRONIZE,
     
    115115            if (rcNt == STATUS_CANNOT_DELETE)
    116116            {
    117                 birdMakeWritable(&NtPath);
     117                birdMakeWritable(hRoot, &NtPath);
    118118                rcNt = g_pfnNtDeleteFile(&ObjAttr);
    119119            }
     
    153153
    154154                fMayTryAgain = 0;
    155                 birdMakeWritable(&NtPath);
     155                birdMakeWritable(hRoot, &NtPath);
    156156            }
    157157        }
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