Changeset 3386 in kBuild
- Timestamp:
- Jun 25, 2020 6:49:02 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/ntunlink.c
r3126 r3386 39 39 40 40 41 static MY_NTSTATUS birdMakeWritable( MY_UNICODE_STRING *pNtPath)41 static MY_NTSTATUS birdMakeWritable(HANDLE hRoot, MY_UNICODE_STRING *pNtPath) 42 42 { 43 43 MY_NTSTATUS rcNt; 44 44 HANDLE hFile; 45 45 46 rcNt = birdOpenFileUniStr( NULL /*hRoot*/,46 rcNt = birdOpenFileUniStr(hRoot, 47 47 pNtPath, 48 48 FILE_WRITE_ATTRIBUTES | FILE_READ_ATTRIBUTES | SYNCHRONIZE, … … 115 115 if (rcNt == STATUS_CANNOT_DELETE) 116 116 { 117 birdMakeWritable( &NtPath);117 birdMakeWritable(hRoot, &NtPath); 118 118 rcNt = g_pfnNtDeleteFile(&ObjAttr); 119 119 } … … 153 153 154 154 fMayTryAgain = 0; 155 birdMakeWritable( &NtPath);155 birdMakeWritable(hRoot, &NtPath); 156 156 } 157 157 }
Note:
See TracChangeset
for help on using the changeset viewer.