Commit 9e8b1259 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

kernel32/tests: Test -1 length for NULL ptr too.

parent 22209db8
......@@ -101,6 +101,13 @@ static void test_null_source(void)
ok(!len && GLE == ERROR_INVALID_PARAMETER,
"WideCharToMultiByte returned %d with GLE=%d (expected 0 with ERROR_INVALID_PARAMETER)\n",
len, GLE);
SetLastError(0);
len = WideCharToMultiByte(CP_ACP, 0, NULL, -1, NULL, 0, NULL, NULL);
GLE = GetLastError();
ok(!len && GLE == ERROR_INVALID_PARAMETER,
"WideCharToMultiByte returned %d with GLE=%d (expected 0 with ERROR_INVALID_PARAMETER)\n",
len, GLE);
}
/* lstrcmpW is not supported on Win9x! */
......
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