Fixed tests of GetAcceptLanguagesA for win9x/ME.

This commit is contained in:
Stefan Leichter 2004-12-08 13:52:02 +00:00 committed by Alexandre Julliard
parent e520346265
commit 77928370a5
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ static void test_GetAcceptLanguagesA(void)
"ERROR_PROC_NOT_FOUND(NT4)/ERROR_NO_IMPERSONATION_TOKEN(XP)\n", GetLastError()); "ERROR_PROC_NOT_FOUND(NT4)/ERROR_NO_IMPERSONATION_TOKEN(XP)\n", GetLastError());
ok(exactsize == strlen(buffer), ok(exactsize == strlen(buffer),
"buffer content (length) wrong: got %08x, expected %08lx \n", strlen(buffer), exactsize); "buffer content (length) wrong: got %08x, expected %08lx \n", strlen(buffer), exactsize);
} else if((buffersize -1) == exactsize) { } else if((buffersize +1) == buffersize2) {
ok(ERROR_SUCCESS == GetLastError(), ok(ERROR_SUCCESS == GetLastError(),
"last error wrong: got %08lx; expected ERROR_SUCCESS\n", GetLastError()); "last error wrong: got %08lx; expected ERROR_SUCCESS\n", GetLastError());
ok(buffersize == strlen(buffer), ok(buffersize == strlen(buffer),
@ -140,7 +140,7 @@ static void test_GetAcceptLanguagesA(void)
ok(ERROR_SUCCESS == GetLastError(), ok(ERROR_SUCCESS == GetLastError(),
"last error wrong: got %08lx; expected ERROR_SUCCESS\n", GetLastError()); "last error wrong: got %08lx; expected ERROR_SUCCESS\n", GetLastError());
if((buffersize == exactsize) /* XP */ || if((buffersize == exactsize) /* XP */ ||
((buffersize -1)== exactsize) /* 98 */) ((buffersize +1)== exactsize) /* 98 */)
ok(buffersize == strlen(buffer), ok(buffersize == strlen(buffer),
"buffer content (length) wrong: got %08x, expected %08lx \n", strlen(buffer), buffersize); "buffer content (length) wrong: got %08x, expected %08lx \n", strlen(buffer), buffersize);
else else