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
Notes: sideshowbarker 2024-07-19 12:58:17 +09:00

View file

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