cliprdr: fix message of error code log
This commit is contained in:
parent
4523c4ec78
commit
6e2cc358ba
@ -75,12 +75,7 @@ const char* CB_MSG_FLAGS_STRING(UINT16 msgFlags, char* buffer, size_t size)
|
|||||||
winpr_str_append("CB_ASCII_NAMES", buffer, size, "|");
|
winpr_str_append("CB_ASCII_NAMES", buffer, size, "|");
|
||||||
|
|
||||||
const size_t len = strnlen(buffer, size);
|
const size_t len = strnlen(buffer, size);
|
||||||
if (len > 0)
|
if (!len)
|
||||||
{
|
|
||||||
/* remove trailing | */
|
|
||||||
buffer[len - 1] = '\0';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
winpr_str_append("NONE", buffer, size, "");
|
winpr_str_append("NONE", buffer, size, "");
|
||||||
|
|
||||||
char val[32] = { 0 };
|
char val[32] = { 0 };
|
||||||
|
Loading…
Reference in New Issue
Block a user