fusion/tests: Don't crash on .NET 1.x.

This commit is contained in:
Paul Vriens 2009-02-20 08:01:17 +01:00 committed by Alexandre Julliard
parent b76007d847
commit 93c4158283
1 changed files with 6 additions and 2 deletions

View File

@ -181,8 +181,12 @@ static void test_CreateAssemblyEnum(void)
ok(asmname != NULL, "Expected non-NULL asmname\n");
/* pEnum is NULL */
hr = pCreateAssemblyEnum(NULL, NULL, asmname, ASM_CACHE_GAC, NULL);
ok(hr == E_INVALIDARG, "Expected E_INVALIDARG, got %08x\n", hr);
if (0)
{
/* Crashes on .NET 1.x */
hr = pCreateAssemblyEnum(NULL, NULL, asmname, ASM_CACHE_GAC, NULL);
ok(hr == E_INVALIDARG, "Expected E_INVALIDARG, got %08x\n", hr);
}
/* pName is NULL */
asmenum = NULL;