diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-10-16 20:43:59 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-10-16 20:43:59 +0200 |
| commit | 9992a198f1d2dc498487f6f2aa0f1d0ef2ff597f (patch) | |
| tree | ab567d3c52c2e78a0fb5faed39bc985968e02f2b /Source/Core | |
| parent | 02abc086c6858a3b4fc24e71ac62267f2cfb1a9a (diff) | |
IOS/NetKDRequest: Don't abort on first unset bit in subtask mask.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp b/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp index 083bd3f757..37269f2297 100644 --- a/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp +++ b/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp @@ -267,17 +267,14 @@ IPCReply NetKDRequestDevice::HandleNWC24DownloadNowEx(const IOCtlRequest& reques { for (u8 subtask_id = 0; subtask_id < 32; subtask_id++) { - // Check if we are done - if (!Common::ExtractBit(subtask_bitmask, subtask_id)) + if (Common::ExtractBit(subtask_bitmask, subtask_id)) { - break; - } - - reply = KDDownload(entry_index, subtask_id); - if (reply != NWC24::WC24_OK) - { - // An error has occurred, break out and return error. - break; + reply = KDDownload(entry_index, subtask_id); + if (reply != NWC24::WC24_OK) + { + // An error has occurred, break out and return error. + break; + } } } } |
