mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #110033 from SK83RJOSH/pdb-base-name-fix
Fix `WindowUtils::copy_and_rename_pdb` regression
This commit is contained in:
commit
e98d6083d0
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
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.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 '_'
|
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));
|
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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue