From: Oliver Kurth Date: Fri, 2 Nov 2018 22:28:23 +0000 (-0700) Subject: Add more logs for clipboard delay rendering X-Git-Tag: stable-11.0.0~329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed4d390b0002b057e649f51b210102ce794c38cf;p=thirdparty%2Fopen-vm-tools.git Add more logs for clipboard delay rendering --- diff --git a/open-vm-tools/services/plugins/dndcp/dnd/dndClipboard.c b/open-vm-tools/services/plugins/dndcp/dnd/dndClipboard.c index 13633bb9f..8f8117ad8 100644 --- a/open-vm-tools/services/plugins/dndcp/dnd/dndClipboard.c +++ b/open-vm-tools/services/plugins/dndcp/dnd/dndClipboard.c @@ -715,16 +715,20 @@ CPClipboard_Unserialize(CPClipboard *clip, // OUT: the clipboard maxFmt = MIN(CPFORMAT_MAX, maxFmt); for (fmt = CPFORMAT_MIN; fmt < maxFmt; ++fmt) { - Bool exists; - uint32 size; + Bool exists = FALSE; + uint32 size = 0; if (!DnDReadBuffer(&r, &exists, sizeof exists) || !DnDReadBuffer(&r, &size, sizeof size)) { + Log("%s: Error: exists:%d, size:%d, format:%d.\n", __FUNCTION__, + exists, size, (int)fmt); goto error; } if (exists && size) { if (size > r.unreadLen) { + Log("%s: Error: size:%d, unreadLen:%d, format:%d.\n", __FUNCTION__, + size, (int)r.unreadLen, (int)fmt); goto error; }