mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-17 08:34:23 -04:00
cs: fix screenshot packet semantics
This commit is contained in:
parent
0ec23e74b5
commit
a595091be0
2 changed files with 18 additions and 8 deletions
|
@ -109,11 +109,17 @@ namespace ams::cs {
|
|||
.buffer_size = sizeof(g_data),
|
||||
};
|
||||
|
||||
/* Acquire the send lock. */
|
||||
auto lk = MakeSendGuardBlock();
|
||||
|
||||
/* Take the screenshot. */
|
||||
const Result result = DoTakeScreenShotCommand(params);
|
||||
Result result;
|
||||
{
|
||||
/* Acquire the send lock. */
|
||||
auto lk = MakeSendGuardBlock();
|
||||
|
||||
/* Perform the command. */
|
||||
result = DoTakeScreenShotCommand(params);
|
||||
}
|
||||
|
||||
/* Handle the error case. */
|
||||
if (R_FAILED(result)) {
|
||||
SendErrorResult(socket, header, result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue