Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Merge branch '#441' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomodo committed May 24, 2018
2 parents a524f34 + 6d74e04 commit bd1234b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions AlphaFS/Filesystem/FindFileSystemEntryInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,9 @@ private SafeFindFileHandle FindFirstFile(string pathLp, out NativeMethods.WIN32_
ThrowPossibleException((uint) lastError, pathLp);
}

// When the handle is null and we are still here, it means the ErrorHandler is active,
// preventing the Exception from being thrown.
// When the handle is null and we are still here, it means the ErrorHandler is active, preventing the Exception from being thrown.

if (null != handle)
if (null != handle && lastError != Win32Errors.NO_ERROR)
VerifyInstanceType(win32FindData);
}

Expand Down

0 comments on commit bd1234b

Please sign in to comment.