kernel32: Fix a test that fails in win2k and up.

This commit is contained in:
James Hawkins 2008-04-16 16:30:19 -05:00 committed by Alexandre Julliard
parent c009d1e9c4
commit c5ebc4acb0
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ static void test_query_dos_deviceA(void)
static void test_FindFirstVolume(void)
{
char volume[50];
char volume[51];
HANDLE handle;
if (!pFindFirstVolumeA) {
@ -65,7 +65,7 @@ static void test_FindFirstVolume(void)
handle = pFindFirstVolumeA( volume, 49 );
ok( handle == INVALID_HANDLE_VALUE, "succeeded with short buffer\n" );
ok( GetLastError() == ERROR_FILENAME_EXCED_RANGE, "wrong error %u\n", GetLastError() );
handle = pFindFirstVolumeA( volume, 50 );
handle = pFindFirstVolumeA( volume, 51 );
ok( handle != INVALID_HANDLE_VALUE, "failed err %u\n", GetLastError() );
if (handle != INVALID_HANDLE_VALUE)
{