ntdll: Fix two tests that fail on all NT platforms.

This commit is contained in:
James Hawkins 2008-05-02 03:12:43 -05:00 committed by Alexandre Julliard
parent 86b99de84f
commit b779aac8cf

View file

@ -114,11 +114,9 @@ static void test_RtlIsDosDeviceName(void)
{ "c:nul. . . :", 4, 6 },
{ "c:nul . . :", 4, 6 },
{ "c:nul0", 0, 0 },
{ "c:prn:aaa", 0, 0 },
{ "c:PRN:.txt", 4, 6 },
{ "c:aux:.txt...", 4, 6 },
{ "c:prn:.txt:", 4, 6 },
{ "c:nul:aaa", 0, 0 },
{ "con:", 0, 6 },
{ "lpt1:", 0, 8 },
{ "c:com5:", 4, 8 },
@ -147,6 +145,18 @@ static void test_RtlIsDosDeviceName(void)
"Wrong result (%d,%d)/(%d,%d) for %s\n",
HIWORD(ret), LOWORD(ret), test->pos, test->len, test->path );
}
pRtlMultiByteToUnicodeN( buffer, sizeof(buffer), NULL, "c:prn:aaa", strlen("c:prn:aaa")+1 );
ret = pRtlIsDosDeviceName_U( buffer );
ok( ret == MAKELONG( 6, 4 ) || /* NT */
ret == MAKELONG( 0, 0), /* win9x */
"Wrong result (%d,%d)/(4,6) or (0,0) for c:prn:aaa\n", HIWORD(ret), LOWORD(ret) );
pRtlMultiByteToUnicodeN( buffer, sizeof(buffer), NULL, "c:nul:aaa", strlen("c:nul:aaa")+1 );
ret = pRtlIsDosDeviceName_U( buffer );
ok( ret == MAKELONG( 6, 4 ) || /* NT */
ret == MAKELONG( 0, 0), /* win9x */
"Wrong result (%d,%d)/(4,6) or (0,0) for c:nul:aaa\n", HIWORD(ret), LOWORD(ret) );
}
static void test_RtlIsNameLegalDOS8Dot3(void)