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

This commit is contained in:
Marcus Meissner 2006-11-23 21:24:33 +01:00 committed by Alexandre Julliard
parent 22209db865
commit 9e8b1259ca
1 changed files with 7 additions and 0 deletions

View File

@ -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! */