[PATCH] winex11.drv: Fix import XA_STRING compatible wide character.

Chao Long longchao at uniontech.com
Fri Dec 17 03:17:44 CST 2021


Signed-off-by: Chao Long <longchao at uniontech.com>
---
 dlls/winex11.drv/clipboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c
index 147c0fd06ba..07ddf6908fe 100644
--- a/dlls/winex11.drv/clipboard.c
+++ b/dlls/winex11.drv/clipboard.c
@@ -713,7 +713,7 @@ static HANDLE unicode_text_from_string( UINT codepage, const void *data, size_t
  */
 static HANDLE import_string( Atom type, const void *data, size_t size )
 {
-    return unicode_text_from_string( 28591, data, size );
+    return unicode_text_from_string( CP_UTF8, data, size );
 }
 
 
-- 
2.20.1






More information about the wine-devel mailing list