[PATCH] ole32: Avoid console flood with an ERR message
Detlef Riekenberg
wine.dev at web.de
Sun Nov 14 09:30:39 CST 2010
---
dlls/ole32/compobj.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 937f3d8..694e370 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -3657,7 +3657,14 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
}
else
{
- ERR("Unexpected wait termination: %d, %d\n", res, GetLastError());
+ static DWORD old_res;
+ static DWORD old_lasterror;
+ if ((res != old_res) || (GetLastError() != old_lasterror))
+ {
+ old_res = res;
+ old_lasterror = GetLastError();
+ ERR("Unexpected wait termination: %d, %d\n", res, GetLastError());
+ }
hr = E_UNEXPECTED;
break;
}
--
1.7.1
More information about the wine-patches
mailing list