mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix Mono build on Windows after String::resize rename
This commit is contained in:
parent
6f2ab528ca
commit
3be63ecdb6
1 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ String cwd() {
|
|||
const DWORD expected_size = ::GetCurrentDirectoryW(0, nullptr);
|
||||
|
||||
Char16String buffer;
|
||||
buffer.resize((int)expected_size);
|
||||
buffer.resize_uninitialized((int)expected_size);
|
||||
if (::GetCurrentDirectoryW(expected_size, (wchar_t *)buffer.ptrw()) == 0) {
|
||||
return ".";
|
||||
}
|
||||
|
|
@ -139,7 +139,7 @@ String realpath(const String &p_path) {
|
|||
}
|
||||
|
||||
Char16String buffer;
|
||||
buffer.resize((int)expected_size);
|
||||
buffer.resize_uninitialized((int)expected_size);
|
||||
::GetFinalPathNameByHandleW(hFile, (wchar_t *)buffer.ptrw(), expected_size, FILE_NAME_NORMALIZED);
|
||||
|
||||
::CloseHandle(hFile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue