mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
Fix issue #134
This commit is contained in:
@@ -946,7 +946,7 @@ std::string WIN32Window::getClipboardText()
|
||||
if(hglb) {
|
||||
LPTSTR lptstr = (LPTSTR)GlobalLock(hglb);
|
||||
if(lptstr) {
|
||||
text = stdext::utf8_to_latin1((uchar*)lptstr);
|
||||
text = stdext::utf8_to_latin1(lptstr);
|
||||
GlobalUnlock(hglb);
|
||||
}
|
||||
}
|
||||
|
@@ -1056,7 +1056,7 @@ std::string X11Window::getClipboardText()
|
||||
&bytesLeft,
|
||||
&data);
|
||||
if(len > 0) {
|
||||
clipboardText = stdext::utf8_to_latin1(data);
|
||||
clipboardText = stdext::utf8_to_latin1((char*)data);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user