diff --git a/winpr/libwinpr/clipboard/synthetic.c b/winpr/libwinpr/clipboard/synthetic.c index 07ce70515..2238c3e6f 100644 --- a/winpr/libwinpr/clipboard/synthetic.c +++ b/winpr/libwinpr/clipboard/synthetic.c @@ -347,7 +347,7 @@ static void* clipboard_synthesize_html_format(wClipboard* clipboard, UINT32 form /* Check the BOM (Byte Order Mark) */ if ((pSrcData.cpb[0] == 0xFE) && (pSrcData.cpb[1] == 0xFF)) - ByteSwapUnicode(pSrcData.pv, (int)(SrcSize / 2)); + ByteSwapUnicode(pSrcData.pv, (SrcSize / 2)); /* Check if we have WCHAR, convert to UTF-8 */ if ((pSrcData.cpb[0] == 0xFF) && (pSrcData.cpb[1] == 0xFE)) diff --git a/winpr/libwinpr/crt/test/TestString.c b/winpr/libwinpr/crt/test/TestString.c index f19af1be0..db4e879ae 100644 --- a/winpr/libwinpr/crt/test/TestString.c +++ b/winpr/libwinpr/crt/test/TestString.c @@ -91,16 +91,6 @@ int TestString(int argc, char* argv[]) if (!test_url_escape()) return -1; -#ifdef __BIG_ENDIAN__ - /* Be sure that we always use LE encoded string */ - ByteSwapUnicode(testStringW, testStringW_Length); - ByteSwapUnicode(testToken1W, testToken1W_Length); - ByteSwapUnicode(testToken2W, testToken2W_Length); - ByteSwapUnicode(testToken3W, testToken3W_Length); - ByteSwapUnicode(testTokensW, testTokensW_Length); - ByteSwapUnicode(testDelimiter, testDelimiter_Length); -#endif - /* _wcslen */ length = _wcslen(testStringW);