actually set outLength

This commit is contained in:
TakaRikka
2026-08-19 18:17:07 -07:00
parent ff3dbfa8d5
commit e40506dfeb
+4
View File
@@ -1053,6 +1053,10 @@ ModResult ui_get_clipboard_text(LoadedMod& mod, char* buffer, size_t bufferSize,
return MOD_ERROR;
}
if (outLength != nullptr) {
*outLength = text.size();
}
if (bufferSize < text.size() + 1) {
return MOD_INVALID_ARGUMENT;
}