summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index c13aca1..a572586 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -1520,9 +1520,11 @@ int read_pfraw(char* filename, int prio)
sizeof( pix_t ) * bmph.width * bmph.height;
int hid;
- while (!(hid = rb->buflib_alloc(&buf_ctx, size)) && free_slide_prio(prio));
+ do {
+ hid = rb->buflib_alloc(&buf_ctx, size);
+ } while (hid < 0 && free_slide_prio(prio));
- if (!hid) {
+ if (hid < 0) {
rb->close( fh );
return 0;
}