wininet/tests: Fix a test failure on Win2k.
This commit is contained in:
parent
c7f7d1985e
commit
7aaec2e667
|
@ -800,10 +800,16 @@ static void test_find_first_file(HINTERNET hFtp, HINTERNET hConnect)
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
hSearch = FtpFindFirstFileA(hFtp, "welcome.msg", &findData, 0, 0);
|
hSearch = FtpFindFirstFileA(hFtp, "welcome.msg", &findData, 0, 0);
|
||||||
error = GetLastError();
|
error = GetLastError();
|
||||||
ok ( hSearch == NULL, "Expected FtpFindFirstFileA to fail\n" );
|
ok ( hSearch == NULL || broken(hSearch != NULL), /* win2k */
|
||||||
ok ( error == ERROR_FTP_TRANSFER_IN_PROGRESS || broken(error == ERROR_INTERNET_EXTENDED_ERROR),
|
"Expected FtpFindFirstFileA to fail\n" );
|
||||||
"Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d\n", error );
|
if (!hSearch)
|
||||||
InternetCloseHandle(hSearch); /* Just in case */
|
ok ( error == ERROR_FTP_TRANSFER_IN_PROGRESS || broken(error == ERROR_INTERNET_EXTENDED_ERROR),
|
||||||
|
"Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d\n", error );
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ok( error == ERROR_SUCCESS, "wrong error %u on success\n", GetLastError() );
|
||||||
|
InternetCloseHandle(hSearch);
|
||||||
|
}
|
||||||
|
|
||||||
InternetCloseHandle(hOpenFile);
|
InternetCloseHandle(hOpenFile);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue