Skip to content

Commit

Permalink
Merge pull request #572 from sgraves66/master
Browse files Browse the repository at this point in the history
'FindClose()' is not being called under error condition
  • Loading branch information
Liryna committed Sep 11, 2017
2 parents d363357 + b4ec125 commit 29be5c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/dokan_mirror/mirror.c
Original file line number Diff line number Diff line change
Expand Up @@ -863,13 +863,13 @@ MirrorDeleteDirectory(LPCWSTR FileName, PDOKAN_FILE_INFO DokanFileInfo) {

DWORD error = GetLastError();

FindClose(hFind);

if (error != ERROR_NO_MORE_FILES) {
DbgPrint(L"\tDeleteDirectory error code = %d\n\n", error);
return DokanNtStatusFromWin32(error);
}

FindClose(hFind);

return STATUS_SUCCESS;
}

Expand Down

0 comments on commit 29be5c4

Please sign in to comment.