From 2367db174e79f2e496c7d31ff41f1c4d8f38e062 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 4 Nov 2024 20:28:55 +0100 Subject: [PATCH] Add systemroot env --- src/windows-emulator/windows_emulator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/windows-emulator/windows_emulator.cpp b/src/windows-emulator/windows_emulator.cpp index 3c83c06f..99425dbb 100644 --- a/src/windows-emulator/windows_emulator.cpp +++ b/src/windows-emulator/windows_emulator.cpp @@ -293,6 +293,7 @@ namespace proc_params.Environment = allocator.copy_string(L"=::=::\\"); allocator.copy_string(L"EMULATOR=1"); allocator.copy_string(L"COMPUTERNAME=momo"); + allocator.copy_string(L"SystemRoot=C:\\WINDOWS"); allocator.copy_string(L""); std::wstring command_line = L"\"" + settings.application.wstring() + L"\"";