Use u16string in NtAddAtomEx

This commit is contained in:
momo5502
2025-01-25 07:19:22 +01:00
parent 8adb479cf3
commit 98c29ba75a
2 changed files with 2 additions and 2 deletions

View File

@@ -3055,7 +3055,7 @@ namespace
NTSTATUS handle_NtAddAtomEx(const syscall_context& c, const uint64_t atom_name, const ULONG length,
const emulator_object<RTL_ATOM> atom, const ULONG /*flags*/)
{
std::wstring name{};
std::u16string name{};
name.resize(length / 2);
c.emu.read_memory(atom_name, name.data(), length);