[PATCH] rpcrt4: Quiet two noisy fixme`s

Louis Lenders xerox.xerox2000x at gmail.com
Tue Apr 16 09:36:58 CDT 2019


These are printed a lot while running any Office365 program and are more or less flooding the console. I think one does not miss
really usefull information if these fixme`s  are hidden.

Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
---
 dlls/rpcrt4/ndr_marshall.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index d71d2fa1bb..dbf40746b4 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -7263,7 +7263,10 @@ NDR_SCONTEXT WINAPI NdrServerContextNewUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
  */
 void WINAPI NdrCorrelationInitialize(PMIDL_STUB_MESSAGE pStubMsg, void *pMemory, ULONG CacheSize, ULONG Flags)
 {
-    FIXME("(%p, %p, %d, 0x%x): semi-stub\n", pStubMsg, pMemory, CacheSize, Flags);
+    static int once;
+
+    if (!once++)
+        FIXME("(%p, %p, %d, 0x%x): semi-stub\n", pStubMsg, pMemory, CacheSize, Flags);
 
     if (pStubMsg->CorrDespIncrement == 0)
         pStubMsg->CorrDespIncrement = 2; /* size of the normal (non-range) /robust payload */
@@ -7301,5 +7304,8 @@ void WINAPI NdrCorrelationPass(PMIDL_STUB_MESSAGE pStubMsg)
  */
 void WINAPI NdrCorrelationFree(PMIDL_STUB_MESSAGE pStubMsg)
 {
-    FIXME("(%p): stub\n", pStubMsg);
+    static int once;
+
+    if (!once++)
+        FIXME("(%p): stub\n", pStubMsg);
 }
-- 
2.20.1




More information about the wine-devel mailing list