Browse Source

Fix missing return values in FSync GQUEUE implementations

master
Joel Bodenmann 3 weeks ago
parent
commit
4261a1fb0b
  1. 5
      changelog.txt
  2. 6
      src/gqueue/gqueue.c

5
changelog.txt

@ -20,7 +20,10 @@ FIX: STM32LTDC driver: Fix bug in gdisp_lld_blit_area() which affected bl
FIX: Improve /demos/benchmarks/rectangles.
FIX: Win32 driver: Fix buffer position calculation in gdisp_lld_blit_area().
FIX: Win32 driver: Fix memory leak / invalid pointer to free() when re-calculating buffer position in a specific situation.
FIX: Prevent const qualifier being discarded in vfnprintg()
FIX: Prevent const qualifier being discarded in vfnprintg().
FIX: Fix missing return value in gfxQueueFSyncPut().
FIX: Fix missing return value in gfxQueueFSyncPush().
FIX: Fix missing return value in gfxQueueFSyncInsert().
*** Release 2.9 ***

6
src/gqueue/gqueue.c

@ -321,7 +321,7 @@ void _gqueueDeinit(void)
}
gBool gfxQueueFSyncPut(gfxQueueFSync *pqueue, gfxQueueFSyncItem *pitem, gDelay ms) {
if (!pitem) return; // Safety
if (!pitem) return gFalse; // Safety
gfxSemInit(&pitem->sem, 0, 1);
pitem->next = 0;
@ -340,7 +340,7 @@ void _gqueueDeinit(void)
}
gBool gfxQueueFSyncPush(gfxQueueFSync *pqueue, gfxQueueFSyncItem *pitem, gDelay ms) {
if (!pitem) return; // Safety
if (!pitem) return gFalse; // Safety
gfxSemInit(&pitem->sem, 0, 1);
gfxSystemLock();
@ -356,7 +356,7 @@ void _gqueueDeinit(void)
}
gBool gfxQueueFSyncInsert(gfxQueueFSync *pqueue, gfxQueueFSyncItem *pitem, gfxQueueFSyncItem *pafter, gDelay ms) {
if (!pitem) return; // Safety
if (!pitem) return gFalse; // Safety
gfxSemInit(&pitem->sem, 0, 1);
gfxSystemLock();

Loading…
Cancel
Save