mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 13:35:40 +00:00
haiku: Fixed SDL_SetClipboardText() putting random data in clipboard.
This commit is contained in:
parent
de52dc2948
commit
1b9dc59918
|
@ -43,7 +43,7 @@ int BE_SetClipboardText(_THIS, const char *text) {
|
|||
/* Presumably the string of characters is ascii-format */
|
||||
ssize_t asciiLength = 0;
|
||||
for(; text[asciiLength] != 0; ++asciiLength) {}
|
||||
clip->AddData("text/plain", B_MIME_TYPE, &text, asciiLength);
|
||||
clip->AddData("text/plain", B_MIME_TYPE, text, asciiLength);
|
||||
be_clipboard->Commit();
|
||||
}
|
||||
be_clipboard->Unlock();
|
||||
|
|
Loading…
Reference in a new issue