From 41150710ec92c74afaff44aa01b6b0dd5970fb8e Mon Sep 17 00:00:00 2001 From: Josh Wood Date: Wed, 27 Aug 2025 22:48:45 +0200 Subject: [PATCH] Fix `WindowUtils::copy_and_rename_pdb` path shortening regression --- platform/windows/windows_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows/windows_utils.cpp b/platform/windows/windows_utils.cpp index c7eeb3f32e9..7015f63386d 100644 --- a/platform/windows/windows_utils.cpp +++ b/platform/windows/windows_utils.cpp @@ -180,7 +180,7 @@ Error WindowsUtils::copy_and_rename_pdb(const String &p_dll_path) { ERR_FAIL_COND_V_MSG(original_path_size < min_base_size + suffix_size, FAILED, vformat("The original PDB path size in bytes is too small: '%s'. Expected size: %d or more bytes, but available %d.", pdb_info.path, min_base_size + suffix_size, original_path_size)); new_pdb_base_name.clear(); - new_pdb_base_name.append_utf8(utf8_name, original_path_size - suffix_size); + new_pdb_base_name.append_utf8(utf8_name.get_data(), original_path_size - suffix_size); new_pdb_base_name[new_pdb_base_name.length() - 1] = '_'; // Restore the last '_' WARN_PRINT(vformat("The original path size of '%s' in bytes was too small to fit the new name, so it was shortened to '%s%d.pdb'.", pdb_info.path, new_pdb_base_name, max_pdb_names - 1)); }