[PATCH] ole32: Avoid console flood with an ERR message
Alexandre Julliard
julliard at winehq.org
Tue Nov 16 07:17:18 CST 2010
Detlef Riekenberg <wine.dev at web.de> writes:
> @@ -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());
> + }
That's just hiding the problem.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list