Changeset 32dde7e8 in mainline


Ignore:
Timestamp:
2019-11-17T23:30:20Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
48f7e47
Parents:
ecb7828
Message:

Handle errors correctly

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/gfxdemo/gfxdemo.c

    recb7828 r32dde7e8  
    473473        if (rc != EOK) {
    474474                printf("Error getting graphics context.\n");
     475                return rc;
    475476        }
    476477
  • uspace/lib/ipcgfx/src/client.c

    recb7828 r32dde7e8  
    144144                    dim.x * dim.y * sizeof(uint32_t), AS_AREA_READ |
    145145                    AS_AREA_WRITE | AS_AREA_CACHEABLE, AS_AREA_UNPAGED);
    146                 if (ipcbm->alloc.pixels == NULL) {
     146                if (ipcbm->alloc.pixels == AS_MAP_FAILED) {
    147147                        rc = ENOMEM;
    148148                        goto error;
Note: See TracChangeset for help on using the changeset viewer.