Silence two debug messages after they have cried a little bit.
authorHartmut Birr <osexpert@googlemail.com>
Sat, 10 Sep 2005 15:30:21 +0000 (15:30 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sat, 10 Sep 2005 15:30:21 +0000 (15:30 +0000)
svn path=/trunk/; revision=17780

reactos/lib/advapi32/sec/lsa.c

index 0c600ac..993f9b2 100644 (file)
 NTSTATUS STDCALL
 LsaClose(LSA_HANDLE ObjectHandle)
 {
 NTSTATUS STDCALL
 LsaClose(LSA_HANDLE ObjectHandle)
 {
-  DPRINT1("(%p):LsaClose stub\n",ObjectHandle);
+  static int count = 0;
+  if (count++ < 20)
+  {
+     DPRINT1("(%p):LsaClose stub\n",ObjectHandle);
+  }
   return 0xc0000000;
 }
 
   return 0xc0000000;
 }
 
@@ -217,7 +221,11 @@ LsaOpenPolicy(PLSA_UNICODE_STRING lsaucs,
              ACCESS_MASK access,
              PLSA_HANDLE PolicyHandle)
 {
              ACCESS_MASK access,
              PLSA_HANDLE PolicyHandle)
 {
-  DPRINT1("LsaOpenPolicy - stub\n");
+  static int count = 0;
+  if (count++ < 20)
+  {
+     DPRINT1("LsaOpenPolicy - stub\n");
+  }
   return STATUS_SUCCESS;
 }
 
   return STATUS_SUCCESS;
 }