wininet/tests: Fix a test failure.
This commit is contained in:
parent
abf8d62888
commit
c68bb8da7f
@ -257,10 +257,8 @@ static void test_getfile(HINTERNET hFtp, HINTERNET hConnect)
|
|||||||
"Expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
|
"Expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
|
||||||
|
|
||||||
/* Zero attributes */
|
/* Zero attributes */
|
||||||
SetLastError(0xdeadbeef);
|
|
||||||
bRet = FtpGetFileA(hFtp, "welcome.msg", "should_be_existing_non_deadbeef", FALSE, 0, FTP_TRANSFER_TYPE_UNKNOWN, 0);
|
bRet = FtpGetFileA(hFtp, "welcome.msg", "should_be_existing_non_deadbeef", FALSE, 0, FTP_TRANSFER_TYPE_UNKNOWN, 0);
|
||||||
ok ( bRet == TRUE, "Expected FtpGetFileA to succeed\n");
|
ok ( bRet == TRUE, "Expected FtpGetFileA to succeed\n");
|
||||||
ok (GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError());
|
|
||||||
ok (GetFileAttributesA("should_be_existing_non_deadbeef") != INVALID_FILE_ATTRIBUTES,
|
ok (GetFileAttributesA("should_be_existing_non_deadbeef") != INVALID_FILE_ATTRIBUTES,
|
||||||
"Local file should have been created\n");
|
"Local file should have been created\n");
|
||||||
DeleteFileA("should_be_existing_non_deadbeef");
|
DeleteFileA("should_be_existing_non_deadbeef");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user