urlmon/tests: Don't check for out of memory (Coverity).

This commit is contained in:
Paul Vriens 2009-07-02 10:13:51 +02:00 committed by Alexandre Julliard
parent eddc78e480
commit 024725515e
1 changed files with 12 additions and 19 deletions

View File

@ -1191,12 +1191,6 @@ static void test_user_agent(void)
ok(size > 0, "size=%d, expected non-zero\n", size);
str2 = HeapAlloc(GetProcessHeap(), 0, (size+20)*sizeof(CHAR));
if (!str2)
{
skip("skipping rest of ObtainUserAgent tests, out of memory\n");
}
else
{
saved = size;
hres = ObtainUserAgentString(0, str2, &size);
ok(hres == S_OK, "ObtainUserAgentString failed: %08x\n", hres);
@ -1210,7 +1204,6 @@ static void test_user_agent(void)
hres = ObtainUserAgentString(0, str2, &size);
ok(hres == S_OK, "ObtainUserAgentString failed: %08x\n", hres);
ok(size == saved, "size=%d, expected %d\n", size, saved);
}
size = 0;
hres = UrlMkGetSessionOption(URLMON_OPTION_USERAGENT, NULL, 0, &size, 0);