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

Alexandre Julliard julliard at wine.codeweavers.com
Thu Mar 8 07:17:13 CST 2007


Module: wine
Branch: master
Commit: df3a7a7b43841870f84f740c772febb36e40b16e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=df3a7a7b43841870f84f740c772febb36e40b16e

Author: Kai Blin <kai.blin at gmail.com>
Date:   Thu Mar  8 13:18:16 2007 +0100

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

---

 dlls/secur32/tests/main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/secur32/tests/main.c b/dlls/secur32/tests/main.c
index f105eb0..a6daa28 100644
--- a/dlls/secur32/tests/main.c
+++ b/dlls/secur32/tests/main.c
@@ -223,8 +223,9 @@ static void testQuerySecurityPackageInfo(void)
     pkg_info = (void *)0xdeadbeef;
     sec_status = pQuerySecurityPackageInfoA(winetest, &pkg_info);
 
-    ok( sec_status != SEC_E_OK,
-        "Return value of QuerySecurityPackageInfo() should not be %s for a nonexistent package\n", getSecError(SEC_E_OK));
+    ok( sec_status == SEC_E_SECPKG_NOT_FOUND,
+        "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);
 




More information about the wine-cvs mailing list