Sebastian Lackner : wininet/tests: Print the correct function name in ok() messages.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Aug 12 09:17:54 CDT 2015
Module: wine
Branch: master
Commit: 9a7ce5614507adc05bcff991022e6e6871f7bdf6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a7ce5614507adc05bcff991022e6e6871f7bdf6
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Mon Aug 10 16:45:54 2015 +0200
wininet/tests: Print the correct function name in ok() messages.
---
dlls/wininet/tests/internet.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/wininet/tests/internet.c b/dlls/wininet/tests/internet.c
index 5e09525..2efde07 100644
--- a/dlls/wininet/tests/internet.c
+++ b/dlls/wininet/tests/internet.c
@@ -1111,29 +1111,29 @@ static void test_InternetSetOption(void)
SetLastError(0xdeadbeef);
ulArg = 11;
ret = InternetSetOptionA(NULL, INTERNET_OPTION_ERROR_MASK, (void*)&ulArg, sizeof(ULONG));
- ok(ret == FALSE, "InternetQueryOption should've failed\n");
+ ok(ret == FALSE, "InternetSetOption should've failed\n");
ok(GetLastError() == ERROR_INTERNET_INCORRECT_HANDLE_TYPE, "GetLastError() = %x\n", GetLastError());
SetLastError(0xdeadbeef);
ulArg = 11;
ret = InternetSetOptionA(req, INTERNET_OPTION_ERROR_MASK, (void*)&ulArg, 20);
- ok(ret == FALSE, "InternetQueryOption should've failed\n");
+ ok(ret == FALSE, "InternetSetOption should've failed\n");
ok(GetLastError() == ERROR_INTERNET_BAD_OPTION_LENGTH, "GetLastError() = %d\n", GetLastError());
ulArg = 11;
ret = InternetSetOptionA(req, INTERNET_OPTION_ERROR_MASK, (void*)&ulArg, sizeof(ULONG));
- ok(ret == TRUE, "InternetQueryOption should've succeeded\n");
+ ok(ret == TRUE, "InternetSetOption should've succeeded\n");
SetLastError(0xdeadbeef);
ulArg = 4;
ret = InternetSetOptionA(req, INTERNET_OPTION_ERROR_MASK, (void*)&ulArg, sizeof(ULONG));
- ok(ret == FALSE, "InternetQueryOption should've failed\n");
+ ok(ret == FALSE, "InternetSetOption should've failed\n");
ok(GetLastError() == ERROR_INVALID_PARAMETER, "GetLastError() = %x\n", GetLastError());
SetLastError(0xdeadbeef);
ulArg = 16;
ret = InternetSetOptionA(req, INTERNET_OPTION_ERROR_MASK, (void*)&ulArg, sizeof(ULONG));
- ok(ret == FALSE, "InternetQueryOption should've failed\n");
+ ok(ret == FALSE, "InternetSetOption should've failed\n");
ok(GetLastError() == ERROR_INVALID_PARAMETER, "GetLastError() = %x\n", GetLastError());
ret = InternetCloseHandle(req);
More information about the wine-cvs
mailing list