[ros-diffs] [hbirr] 17780: Silence two debug messages after they have cried a little bit.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Sat Sep 10 17:30:27 CEST 2005


Silence two debug messages after they have cried a little bit.
Modified: trunk/reactos/lib/advapi32/sec/lsa.c
  _____  

Modified: trunk/reactos/lib/advapi32/sec/lsa.c
--- trunk/reactos/lib/advapi32/sec/lsa.c	2005-09-10 15:21:16 UTC
(rev 17779)
+++ trunk/reactos/lib/advapi32/sec/lsa.c	2005-09-10 15:30:21 UTC
(rev 17780)
@@ -28,7 +28,11 @@

 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;
 }
 
@@ -217,7 +221,11 @@
 	      ACCESS_MASK access,
 	      PLSA_HANDLE PolicyHandle)
 {
-  DPRINT1("LsaOpenPolicy - stub\n");
+  static int count = 0;
+  if (count++ < 20)
+  {
+     DPRINT1("LsaOpenPolicy - stub\n");
+  }
   return STATUS_SUCCESS;
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050910/c8043a51/attachment.html


More information about the Ros-diffs mailing list