Skip to content

Commit 899a155

Browse files
committed
fix to log ERROR_INVALID_PARAMETER
1 parent 53d9c49 commit 899a155

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Applications/Ice/Main/Sources/Internal/Ads/FileDataStreamHelper.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,15 @@ static FileDataStreamType to_type(string s) =>
170170
/// </summary>
171171
///
172172
/* --------------------------------------------------------------------- */
173-
private static bool IsIgnore(int code) =>
174-
code == 38 || // ERROR_HANDLE_EOF (no streams can be found)
175-
code == 87; // ERROR_INVALID_PARAMETER (filesystem does not support streams)
173+
private static bool IsIgnore(int code)
174+
{
175+
if (code == 87)
176+
{
177+
Logger.Debug("ERROR_INVALID_PARAMETER (filesystem does not support streams)");
178+
return true;
179+
}
180+
return code == 38; // ERROR_HANDLE_EOF (no streams can be found)
181+
}
176182

177183
#region Unsafe methods
178184

0 commit comments

Comments
 (0)