secur32: Check for actual return value on invalid QuerySecurityPackageInfo call.

This commit is contained in:
Kai Blin 2007-03-08 13:18:16 +01:00 committed by Alexandre Julliard
parent 045270605c
commit df3a7a7b43
1 changed files with 3 additions and 2 deletions

View File

@ -223,8 +223,9 @@ static void testQuerySecurityPackageInfo(void)
pkg_info = (void *)0xdeadbeef; pkg_info = (void *)0xdeadbeef;
sec_status = pQuerySecurityPackageInfoA(winetest, &pkg_info); sec_status = pQuerySecurityPackageInfoA(winetest, &pkg_info);
ok( sec_status != SEC_E_OK, ok( sec_status == SEC_E_SECPKG_NOT_FOUND,
"Return value of QuerySecurityPackageInfo() should not be %s for a nonexistent package\n", getSecError(SEC_E_OK)); "Return value of QuerySecurityPackageInfo() should be %s for a nonexistent package\n",
getSecError(SEC_E_SECPKG_NOT_FOUND));
ok(pkg_info == (void *)0xdeadbeef, "wrong pkg_info address %p\n", pkg_info); ok(pkg_info == (void *)0xdeadbeef, "wrong pkg_info address %p\n", pkg_info);