- Merge from trunk up to r45543
[reactos.git] / dll / win32 / kernel32 / file / dir.c
index b3aa699..c89afb6 100644 (file)
@@ -545,7 +545,7 @@ RemoveDirectoryW (
         TRACE("NtPathU '%S'\n", NtPathU.Buffer);
 
         Status = NtOpenFile(&DirectoryHandle,
-                            DELETE,
+                            DELETE | SYNCHRONIZE,
                             &ObjectAttributes,
                             &IoStatusBlock,
                             FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,