diff options
Diffstat (limited to 'userland/libgui/libgui.c')
-rw-r--r-- | userland/libgui/libgui.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/userland/libgui/libgui.c b/userland/libgui/libgui.c index f7a8079..07edbdd 100644 --- a/userland/libgui/libgui.c +++ b/userland/libgui/libgui.c @@ -308,10 +308,7 @@ GUI_Window *GUI_CreateWindow(uint32_t x, uint32_t y, uint32_t sx, uint32_t sy) { ftruncate(w->bitmap_fd, MAX_WINDOW_SIZE * sizeof(uint32_t)); void *rc = mmap(NULL, MAX_WINDOW_SIZE * sizeof(uint32_t), 0, 0, w->bitmap_fd, 0); - if (!((int)rc >= 0)) { - printf("rc: %x\n", rc); - assert(0); - } + assert(rc != (void *)(-1)); w->bitmap_ptr = rc; // Send the request to the windowserver |