Author: sginsberg
Date: Tue Dec 16 08:50:57 2008
New Revision: 38116
URL:
http://svn.reactos.org/svn/reactos?rev=38116&view=rev
Log:
- Temporarily revert part of 38078 to make build server builds bootable again
Modified:
trunk/reactos/dll/win32/advapi32/sec/lsa.c
Modified: trunk/reactos/dll/win32/advapi32/sec/lsa.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/lsa…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/lsa.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/lsa.c [iso-8859-1] Tue Dec 16 08:50:57 2008
@@ -78,10 +78,11 @@
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);
@@ -93,6 +94,15 @@
_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
}
@@ -385,12 +395,13 @@
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;
@@ -409,6 +420,12 @@
TRACE("LsaOpenPolicy() done (Status: 0x%08lx)\n", Status);
return Status;
+#else
+
+ if(PolicyHandle) *PolicyHandle = (LSA_HANDLE)0xcafe;
+ return STATUS_SUCCESS;
+
+#endif
}