mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix a segfault in ReadAllWithProgress
This commit is contained in:
1 parent
8cfc4fe60d
commit
9305870cca
1 file changed
+2
-2
@@ -76,8 +76,8 @@ bool Buffer::ReadAllWithProgress(int fd, int knownSize, RequestProgress *progres
|
||||
int total = 0;
|
||||
while (true) {
|
||||
bool ready = false;
|
||||
while (!ready && (!progress || !*progress->cancelled)) {
|
||||
if (*progress->cancelled)
|
||||
while (!ready && (!progress || (progress->cancelled && !*progress->cancelled))) {
|
||||
if (progress && progress->cancelled && *progress->cancelled)
|
||||
return false;
|
||||
ready = fd_util::WaitUntilReady(fd, CANCEL_INTERVAL, false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user