This commit is contained in:
Eduardo Bart
2012-10-24 18:03:15 -02:00
parent c7890e7a49
commit 8bb115d6d4
9 changed files with 54 additions and 51 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}