kernel32: Fix a test that fails in win2k and up.
This commit is contained in:
parent
c009d1e9c4
commit
c5ebc4acb0
|
@ -49,7 +49,7 @@ static void test_query_dos_deviceA(void)
|
||||||
|
|
||||||
static void test_FindFirstVolume(void)
|
static void test_FindFirstVolume(void)
|
||||||
{
|
{
|
||||||
char volume[50];
|
char volume[51];
|
||||||
HANDLE handle;
|
HANDLE handle;
|
||||||
|
|
||||||
if (!pFindFirstVolumeA) {
|
if (!pFindFirstVolumeA) {
|
||||||
|
@ -65,7 +65,7 @@ static void test_FindFirstVolume(void)
|
||||||
handle = pFindFirstVolumeA( volume, 49 );
|
handle = pFindFirstVolumeA( volume, 49 );
|
||||||
ok( handle == INVALID_HANDLE_VALUE, "succeeded with short buffer\n" );
|
ok( handle == INVALID_HANDLE_VALUE, "succeeded with short buffer\n" );
|
||||||
ok( GetLastError() == ERROR_FILENAME_EXCED_RANGE, "wrong error %u\n", GetLastError() );
|
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() );
|
ok( handle != INVALID_HANDLE_VALUE, "failed err %u\n", GetLastError() );
|
||||||
if (handle != INVALID_HANDLE_VALUE)
|
if (handle != INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue