Bug fix -> String with one char + Directory and File on linux
Former-commit-id: 7f9b6c44197c3cc67145eb0a2d421a2e1de45a84
This commit is contained in:
@@ -3204,14 +3204,12 @@ namespace Nz
|
||||
EnsureOwnership(true);
|
||||
|
||||
m_sharedString->size = 1;
|
||||
m_sharedString->string[0] = character;
|
||||
m_sharedString->string[1] = '\0';
|
||||
}
|
||||
else
|
||||
{
|
||||
auto newString = std::make_shared<SharedString>(1);
|
||||
newString->string[0] = character;
|
||||
}
|
||||
m_sharedString = std::make_shared<SharedString>(1);
|
||||
|
||||
m_sharedString->string[0] = character;
|
||||
}
|
||||
else
|
||||
ReleaseString();
|
||||
|
||||
Reference in New Issue
Block a user