mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 03:33:56 +00:00
Align registry key name casing with microsoft
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "syscall_utils.hpp"
|
||||
|
||||
#include <numeric>
|
||||
#include <cwctype>
|
||||
#include <utils/io.hpp>
|
||||
|
||||
namespace
|
||||
@@ -104,7 +105,13 @@ namespace
|
||||
|
||||
if (key_information_class == KeyNameInformation)
|
||||
{
|
||||
const auto key_name = (key->hive / key->path).wstring();
|
||||
auto key_name = (key->hive / key->path).wstring();
|
||||
while (key_name.ends_with('/') || key_name.ends_with('\\'))
|
||||
{
|
||||
key_name.pop_back();
|
||||
}
|
||||
|
||||
std::ranges::transform(key_name, key_name.begin(), std::towupper);
|
||||
|
||||
const auto required_size = sizeof(KEY_NAME_INFORMATION) + (key_name.size() * 2) - 1;
|
||||
result_length.write(static_cast<ULONG>(required_size));
|
||||
|
||||
Reference in New Issue
Block a user