mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
tst: winfsp-tests: ResilientRemoveDirectoryW
This commit is contained in:
parent
26fe1a741b
commit
9dc774d306
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user