kernel32/tests: Fix test failure on older W2K boxes.

This commit is contained in:
Paul Vriens 2009-05-22 15:04:53 +02:00 committed by Alexandre Julliard
parent d86143b3e4
commit 43ccb8abd8
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ static void test_query_dos_deviceA(void)
}
for (;drivestr[0] <= 'z'; drivestr[0]++) {
ret = QueryDosDeviceA( drivestr, buffer, buflen);
/* Older W2K fails with ERROR_INSUFFICIENT_BUFFER when buflen is > 32767 big */
ret = QueryDosDeviceA( drivestr, buffer, buflen - 1);
if(ret) {
for (p = buffer; *p; p++) *p = toupper(*p);
if (strstr(buffer, "HARDDISK") || strstr(buffer, "RAMDISK")) found = TRUE;