فهرست منبع

fsp_srv: Copy HLE Read Buffer for OutputAccessLogToSdCard

ameerj 3 سال پیش
والد
کامیت
979e4d9950
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/core/hle/service/filesystem/fsp_srv.cpp

+ 1 - 1
src/core/hle/service/filesystem/fsp_srv.cpp

@@ -1083,7 +1083,7 @@ void FSP_SRV::GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx) {
 }
 }
 
 
 void FSP_SRV::OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx) {
 void FSP_SRV::OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx) {
-    const auto raw = ctx.ReadBuffer();
+    const auto raw = ctx.ReadBufferCopy();
     auto log = Common::StringFromFixedZeroTerminatedBuffer(
     auto log = Common::StringFromFixedZeroTerminatedBuffer(
         reinterpret_cast<const char*>(raw.data()), raw.size());
         reinterpret_cast<const char*>(raw.data()), raw.size());