Louis Lenders : kernel32: Print a fixme only once.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Mar 22 10:11:08 CDT 2007


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

Author: Louis Lenders <xerox_xerox2000 at yahoo.co.uk>
Date:   Thu Mar 22 08:51:57 2007 +0000

kernel32: Print a fixme only once.

---

 dlls/kernel32/actctx.c |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/actctx.c b/dlls/kernel32/actctx.c
index af05fef..a0bd3c1 100644
--- a/dlls/kernel32/actctx.c
+++ b/dlls/kernel32/actctx.c
@@ -87,7 +87,16 @@ HANDLE WINAPI CreateActCtxW(PCACTCTXW pActCtx)
  */
 BOOL WINAPI ActivateActCtx(HANDLE hActCtx, ULONG_PTR *ulCookie)
 {
-  FIXME("%p %p\n", hActCtx, ulCookie );
+  static BOOL reported = FALSE;
+
+  if (reported)
+    TRACE("%p %p\n", hActCtx, ulCookie);
+  else
+  {
+    FIXME("%p %p\n", hActCtx, ulCookie);
+    reported = TRUE;
+  }
+
   if (ulCookie)
     *ulCookie = ACTCTX_FAKE_COOKIE;
   return TRUE;
@@ -100,7 +109,16 @@ BOOL WINAPI ActivateActCtx(HANDLE hActCtx, ULONG_PTR *ulCookie)
  */
 BOOL WINAPI DeactivateActCtx(DWORD dwFlags, ULONG_PTR ulCookie)
 {
-  FIXME("%08x %08lx\n", dwFlags, ulCookie);
+  static BOOL reported = FALSE;
+
+  if (reported)
+    TRACE("%08x %08lx\n", dwFlags, ulCookie);
+  else
+  {
+    FIXME("%08x %08lx\n", dwFlags, ulCookie);
+    reported = TRUE;
+  }
+
   if (ulCookie != ACTCTX_FAKE_COOKIE)
     return FALSE;
   return TRUE;




More information about the wine-cvs mailing list