From 98c29ba75a9ef4d180f6dfb7836947550474d1ec Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 25 Jan 2025 07:19:22 +0100 Subject: [PATCH] Use u16string in NtAddAtomEx --- src/windows-emulator/process_context.hpp | 2 +- src/windows-emulator/syscalls.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows-emulator/process_context.hpp b/src/windows-emulator/process_context.hpp index 02513286..52002de2 100644 --- a/src/windows-emulator/process_context.hpp +++ b/src/windows-emulator/process_context.hpp @@ -546,7 +546,7 @@ struct process_context handle_store ports{}; handle_store mutants{}; handle_store registry_keys{}; - std::map atoms{}; + std::map atoms{}; std::vector default_register_set{}; diff --git a/src/windows-emulator/syscalls.cpp b/src/windows-emulator/syscalls.cpp index d46dbb8f..69448eff 100644 --- a/src/windows-emulator/syscalls.cpp +++ b/src/windows-emulator/syscalls.cpp @@ -3055,7 +3055,7 @@ namespace NTSTATUS handle_NtAddAtomEx(const syscall_context& c, const uint64_t atom_name, const ULONG length, const emulator_object atom, const ULONG /*flags*/) { - std::wstring name{}; + std::u16string name{}; name.resize(length / 2); c.emu.read_memory(atom_name, name.data(), length);