1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 09:57:34 +00:00

WindowServer: Fix bad assertion when setting wallpaper

The create_thread() syscall returns the thread ID now, not 0.
This commit is contained in:
Andreas Kling 2019-07-31 18:04:06 +02:00
parent b36108dc3c
commit b46dbfe7e4

View file

@ -249,7 +249,7 @@ bool WSCompositor::set_wallpaper(const String& path, Function<void(bool)>&& call
return 0; return 0;
}, },
context.leak_ptr()); context.leak_ptr());
ASSERT(rc == 0); ASSERT(rc > 0);
return true; return true;
} }