Commit 647817b0 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Don't call invalid parameter handler on invalid mode flag.

parent 1990e194
......@@ -1384,8 +1384,8 @@ static int msvcrt_get_flags(const MSVCRT_wchar_t* mode, int *open_flags, int* st
FIXME("ignoring cache optimization flag: %c\n", mode[-1]);
break;
default:
MSVCRT_INVALID_PMT(0, MSVCRT_EINVAL);
return -1;
ERR("incorrect mode flag: %c\n", mode[-1]);
break;
}
if(*mode == ',')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment