mirror of
https://github.com/winfsp/winfsp.git
synced 2026-11-07 17:46:04 -06:00
tst: winfsp-tests: ResilientRemoveDirectoryW
This commit is contained in:
1 parent
26fe1a741b
commit
9dc774d306
1 file changed
+3
-1
@@ -134,7 +134,9 @@ BOOL WINAPI ResilientRemoveDirectoryW(
|
||||
else
|
||||
{
|
||||
for (ULONG MaxTries = DeleteMaxTries;
|
||||
!Success && ERROR_SHARING_VIOLATION == GetLastError() && 0 != MaxTries;
|
||||
!Success &&
|
||||
(ERROR_SHARING_VIOLATION == GetLastError() || ERROR_DIR_NOT_EMPTY == GetLastError()) &&
|
||||
0 != MaxTries;
|
||||
MaxTries--)
|
||||
{
|
||||
Sleep(DeleteSleepTimeout);
|
||||
|
||||
Reference in new issue
Block a user