[0.4.11] [WIN32SS] Shhhhh! CORE-11944
authorPierre Schweitzer <pierre@reactos.org>
Sun, 9 Dec 2018 21:00:53 +0000 (22:00 +0100)
committerJoachim Henze <Joachim.Henze@reactos.org>
Sun, 9 Dec 2018 21:23:37 +0000 (22:23 +0100)
This silences log-spam from recently added STUB-call of IntGoGhost()
which gets called very frequently currently, e.g. during
our currently pseudo-async network transfers

cherry picked from commit 0.4.12-dev-8-g
958ae44599917be9507f27ea185a0d53e6ed839b

win32ss/user/ntuser/ghost.c

index f7a2235..726fe8f 100644 (file)
@@ -13,6 +13,11 @@ BOOL FASTCALL IntGoGhost(PWND Window, BOOL bGo)
     // 1. Create a thread.
     // 2. Create a ghost window in the thread.
     // 3. Do message loop in the thread
-    STUB;
+    static int bWarnedOnce = 0;
+    if (!bWarnedOnce)
+    {
+        bWarnedOnce++;
+        STUB;
+    }
     return FALSE;
 }