mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,clipboard] fix Wshorten-64-to-32
This commit is contained in:
@@ -506,10 +506,11 @@ BOOL ClipboardSetData(wClipboard* clipboard, UINT32 formatId, const void* data,
|
||||
{
|
||||
case CF_TEXT:
|
||||
case CF_OEMTEXT:
|
||||
clipboard->size = strnlen(clipboard->data, size) + 1;
|
||||
clipboard->size = (UINT32)(strnlen(clipboard->data, size) + 1UL);
|
||||
break;
|
||||
case CF_UNICODETEXT:
|
||||
clipboard->size = (_wcsnlen(clipboard->data, size / sizeof(WCHAR)) + 1) * sizeof(WCHAR);
|
||||
clipboard->size =
|
||||
(UINT32)((_wcsnlen(clipboard->data, size / sizeof(WCHAR)) + 1UL) * sizeof(WCHAR));
|
||||
break;
|
||||
default:
|
||||
clipboard->size = size;
|
||||
|
||||
Reference in New Issue
Block a user