mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46:16 +00:00
Use u16string in NtAddAtomEx
This commit is contained in:
@@ -546,7 +546,7 @@ struct process_context
|
||||
handle_store<handle_types::port, port> ports{};
|
||||
handle_store<handle_types::mutant, mutant> mutants{};
|
||||
handle_store<handle_types::registry, registry_key, 2> registry_keys{};
|
||||
std::map<uint16_t, std::wstring> atoms{};
|
||||
std::map<uint16_t, std::u16string> atoms{};
|
||||
|
||||
std::vector<std::byte> default_register_set{};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user