diff --git a/libraries/libstratosphere/source/os/os_shared_memory.cpp b/libraries/libstratosphere/source/os/os_shared_memory.cpp index e16ecb0b8..491470c71 100644 --- a/libraries/libstratosphere/source/os/os_shared_memory.cpp +++ b/libraries/libstratosphere/source/os/os_shared_memory.cpp @@ -33,6 +33,9 @@ namespace ams::os { /* Create the critical section. */ util::ConstructAt(shared_memory->cs_shared_memory); + + /* Set state to initialized. */ + shared_memory->state = SharedMemoryType::State_Initialized; } } diff --git a/libraries/libstratosphere/source/os/os_transfer_memory.cpp b/libraries/libstratosphere/source/os/os_transfer_memory.cpp index 3051d45f5..d0f172e3f 100644 --- a/libraries/libstratosphere/source/os/os_transfer_memory.cpp +++ b/libraries/libstratosphere/source/os/os_transfer_memory.cpp @@ -33,6 +33,9 @@ namespace ams::os { /* Create the critical section. */ util::ConstructAt(tmem->cs_transfer_memory); + + /* Set state to created. */ + tmem->state = TransferMemoryType::State_Created; } }