kern: fix bug in server handle cleanup

This commit is contained in:
Michael Scire 2020-07-29 00:21:35 -07:00 committed by SciresM
parent bb7f320f7f
commit 2db6760461

View File

@ -810,7 +810,7 @@ namespace ams::kern {
CleanupSpecialData(dst_process, dst_msg_ptr, dst_buffer_size);
}
} else {
CleanupServerHandles(src_message_buffer, src_buffer_size, src_message_paddr);
CleanupServerHandles(src_user ? src_message_buffer : 0, src_buffer_size, src_message_paddr);
}
/* Cleanup mappings. */