From 35568f58b06d331d661c6b9afdf7fd01b06b86b4 Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Sat, 20 Dec 2008 13:48:35 +0000 Subject: [PATCH] - Revert 38116 -- the SEH issues should be gone now svn path=/trunk/; revision=38198 --- reactos/dll/win32/advapi32/sec/lsa.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/reactos/dll/win32/advapi32/sec/lsa.c b/reactos/dll/win32/advapi32/sec/lsa.c index d71c84bf278..a1795c59a15 100644 --- a/reactos/dll/win32/advapi32/sec/lsa.c +++ b/reactos/dll/win32/advapi32/sec/lsa.c @@ -78,11 +78,10 @@ PLSAPR_SERVER_NAME_unbind(PLSAPR_SERVER_NAME pszSystemName, NTSTATUS WINAPI LsaClose(LSA_HANDLE ObjectHandle) { - //NTSTATUS Status; + NTSTATUS Status; TRACE("LsaClose(0x%p) called\n", ObjectHandle); -#if 0 _SEH2_TRY { Status = LsarClose((PLSAPR_HANDLE)&ObjectHandle); @@ -94,15 +93,6 @@ LsaClose(LSA_HANDLE ObjectHandle) _SEH2_END; return Status; -#else - - /* This is our fake handle, don't go too much long way */ - if (ObjectHandle == (LSA_HANDLE)0xcafe) - return STATUS_SUCCESS; - - return LsarClose((PLSAPR_HANDLE)&ObjectHandle); - -#endif } @@ -395,13 +385,12 @@ LsaOpenPolicy( IN ACCESS_MASK DesiredAccess, IN OUT PLSA_HANDLE PolicyHandle) { - //NTSTATUS Status; + NTSTATUS Status; TRACE("LsaOpenPolicy (%s,%p,0x%08x,%p)\n", SystemName?debugstr_w(SystemName->Buffer):"(null)", ObjectAttributes, DesiredAccess, PolicyHandle); -#if 0 _SEH2_TRY { *PolicyHandle = NULL; @@ -420,12 +409,6 @@ LsaOpenPolicy( TRACE("LsaOpenPolicy() done (Status: 0x%08lx)\n", Status); return Status; -#else - - if(PolicyHandle) *PolicyHandle = (LSA_HANDLE)0xcafe; - return STATUS_SUCCESS; - -#endif }