Marcus Meissner : imm32: Avoid spamming the debug output.

Alexandre Julliard julliard at winehq.org
Fri Oct 12 05:23:03 CDT 2007


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Fri Oct 12 09:11:43 2007 +0200

imm32: Avoid spamming the debug output.

---

 dlls/imm32/imm.c |   26 ++++++++++++++++++++------
 1 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index b95b257..4f5f658 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -1057,7 +1057,12 @@ BOOL WINAPI ImmGetConversionStatus(
  */
 HWND WINAPI ImmGetDefaultIMEWnd(HWND hWnd)
 {
-  FIXME("(%p - %p %p ): semi-stub\n", hWnd,hwndDefault, root_context);
+  static int shown = 0;
+
+  if (!shown) {
+        FIXME("(%p - %p %p ): semi-stub\n", hWnd,hwndDefault, root_context);
+	shown = 1;
+  }
 
   if (hwndDefault == NULL)
   {
@@ -1517,9 +1522,13 @@ BOOL WINAPI ImmRegisterWordW(
  */
 BOOL WINAPI ImmReleaseContext(HWND hWnd, HIMC hIMC)
 {
-  FIXME("(%p, %p): stub\n", hWnd, hIMC);
+  static int shown = 0;
 
-    return TRUE;
+  if (!shown) {
+     FIXME("(%p, %p): stub\n", hWnd, hIMC);
+     shown = 1;
+  }
+  return TRUE;
 }
 
 /***********************************************************************
@@ -1731,9 +1740,14 @@ BOOL WINAPI ImmSetCompositionWindow(
 BOOL WINAPI ImmSetConversionStatus(
   HIMC hIMC, DWORD fdwConversion, DWORD fdwSentence)
 {
-  FIXME("(%p, %d, %d): stub\n",
-    hIMC, fdwConversion, fdwSentence
-  );
+  static int shown = 0;
+
+  if (!shown) {
+      FIXME("(%p, %d, %d): stub\n",
+          hIMC, fdwConversion, fdwSentence
+      );
+      shown = 1;
+  }
   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
   return FALSE;
 }




More information about the wine-cvs mailing list