Skip to content

Commit

Permalink
fix to log ERROR_INVALID_PARAMETER
Browse files Browse the repository at this point in the history
  • Loading branch information
clown committed Jul 28, 2023
1 parent 53d9c49 commit 899a155
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,15 @@ static FileDataStreamType to_type(string s) =>
/// </summary>
///
/* --------------------------------------------------------------------- */
private static bool IsIgnore(int code) =>
code == 38 || // ERROR_HANDLE_EOF (no streams can be found)
code == 87; // ERROR_INVALID_PARAMETER (filesystem does not support streams)
private static bool IsIgnore(int code)
{
if (code == 87)
{
Logger.Debug("ERROR_INVALID_PARAMETER (filesystem does not support streams)");
return true;
}
return code == 38; // ERROR_HANDLE_EOF (no streams can be found)
}

#region Unsafe methods

Expand Down

0 comments on commit 899a155

Please sign in to comment.