diff --git a/src/common/emulatorConfig.h b/src/common/emulatorConfig.h index 25a5fbb7b..0b21fc82a 100644 --- a/src/common/emulatorConfig.h +++ b/src/common/emulatorConfig.h @@ -59,7 +59,7 @@ struct ConfigOptions { bool command_buffer_dump_enabled = false; std::filesystem::path command_buffer_dump_folder = "_Buffers"; bool graphics_debug_dump_enabled = false; - OutputDirection printf_direction = OutputDirection::Console; + OutputDirection printf_direction = OutputDirection::Silent; std::filesystem::path printf_output_file = "_kyty.txt"; ProfilerDirection profiler_direction = ProfilerDirection::None; bool spirv_debug_printf_enabled = false; diff --git a/src/kernel/memoryAddressSpace.inc b/src/kernel/memoryAddressSpace.inc index 8b0cb13ac..25a3606a7 100644 --- a/src/kernel/memoryAddressSpace.inc +++ b/src/kernel/memoryAddressSpace.inc @@ -44,9 +44,9 @@ public: explicit GuestBackingStore(uint64_t size): m_size(size) { #if KYTY_PLATFORM == KYTY_PLATFORM_WINDOWS - m_handle = CreateFileMappingA(INVALID_HANDLE_VALUE, nullptr, PAGE_EXECUTE_READWRITE, - static_cast(m_size >> 32u), - static_cast(m_size & 0xffffffffu), nullptr); + m_handle = CreateFileMappingA( + INVALID_HANDLE_VALUE, nullptr, PAGE_EXECUTE_READWRITE | SEC_COMMIT, + static_cast(m_size >> 32u), static_cast(m_size & 0xffffffffu), nullptr); if (m_handle == nullptr) { LOGF_COLOR(Log::Color::Red, "\t direct-memory backing: CreateFileMapping failed: 0x%08" PRIx32 "\n",