Skip to content

Commit

Permalink
Better solution for the previous fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Nov 14, 2024
1 parent 78534d1 commit d75d359
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/string/ustring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5161,6 +5161,10 @@ String::String(const CharType *p_str) {
copy_from(p_str);
}

String::String(const Char16String &p_str) {
copy_from(p_str.ptr());
}

String::String(const char *p_str, int p_clip_to_len) {
copy_from(p_str, p_clip_to_len);
}
Expand Down
1 change: 1 addition & 0 deletions core/string/ustring.h
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ class String {
String(const char *p_str);
String(const wchar_t *p_str);
String(const CharType *p_str);
String(const Char16String &p_str);
String(const char *p_str, int p_clip_to_len);
String(const wchar_t *p_str, int p_clip_to_len);
String(const CharType *p_str, int p_clip_to_len);
Expand Down
2 changes: 1 addition & 1 deletion platform/windows/os_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2983,7 +2983,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
CloseHandle(pipe[1]);
}

ERR_FAIL_COND_V_MSG(ret == 0, ERR_CANT_FORK, "Could not create child process: " + String((wchar_t *) modstr.ptr()));
ERR_FAIL_COND_V_MSG(ret == 0, ERR_CANT_FORK, "Could not create child process: " + String(modstr));

if (p_blocking) {
if (r_pipe) {
Expand Down

0 comments on commit d75d359

Please sign in to comment.