You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Add resize_initialized and resize_uninitialized to Vector. These functions serve as replacements for resize, to make sure the caller understands whether elements need to be initialized 'by hand' after the call.
This commit is contained in:
@@ -231,7 +231,7 @@ Error WindowsUtils::copy_and_rename_pdb(const String &p_dll_path) {
|
||||
|
||||
// Terminate string and fill the remaining part of the original string with the '\0'.
|
||||
Vector<uint8_t> padding_buffer;
|
||||
padding_buffer.resize_zeroed((int64_t)original_path_size - u8.size());
|
||||
padding_buffer.resize_initialized((int64_t)original_path_size - u8.size());
|
||||
file->store_buffer(padding_buffer);
|
||||
ERR_FAIL_COND_V_MSG(err != OK, err, vformat("Failed to write a new PDB path to '%s'.", p_dll_path));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user