From b46dbfe7e49ea47c2e8b31e6b3472707631ee383 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 31 Jul 2019 18:04:06 +0200 Subject: [PATCH] WindowServer: Fix bad assertion when setting wallpaper The create_thread() syscall returns the thread ID now, not 0. --- Servers/WindowServer/WSCompositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Servers/WindowServer/WSCompositor.cpp b/Servers/WindowServer/WSCompositor.cpp index dae11e64ac..2834ec1673 100644 --- a/Servers/WindowServer/WSCompositor.cpp +++ b/Servers/WindowServer/WSCompositor.cpp @@ -249,7 +249,7 @@ bool WSCompositor::set_wallpaper(const String& path, Function&& call return 0; }, context.leak_ptr()); - ASSERT(rc == 0); + ASSERT(rc > 0); return true; }