Xming: Avoid log spam if a windows application won't provide CF_UNICODETEXT clipboard format
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
71ba9856a4
commit
fbe9ed27b1
|
@ -191,8 +191,13 @@ winClipboardFlushXEvents (HWND hwnd,
|
||||||
if (fUseUnicode
|
if (fUseUnicode
|
||||||
&& !IsClipboardFormatAvailable (CF_UNICODETEXT))
|
&& !IsClipboardFormatAvailable (CF_UNICODETEXT))
|
||||||
{
|
{
|
||||||
ErrorF ("winClipboardFlushXEvents - CF_UNICODETEXT is not "
|
static int count; /* Hack to stop acroread spamming the log */
|
||||||
"available from Win32 clipboard. Aborting.\n");
|
static HWND lasthwnd; /* I've not seen any other client get here repeatedly? */
|
||||||
|
if (hwnd != lasthwnd) count = 0;
|
||||||
|
count++;
|
||||||
|
if (count < 6) ErrorF ("winClipboardFlushXEvents - CF_UNICODETEXT is not "
|
||||||
|
"available from Win32 clipboard. Aborting %d.\n", count);
|
||||||
|
lasthwnd = hwnd;
|
||||||
|
|
||||||
/* Abort */
|
/* Abort */
|
||||||
fAbort = TRUE;
|
fAbort = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user