summaryrefslogtreecommitdiff
path: root/Servers
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-31 18:04:06 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-31 18:04:06 +0200
commitb46dbfe7e49ea47c2e8b31e6b3472707631ee383 (patch)
treedc7fa4d05764620cf9ce79b84cae27a97e6b45f2 /Servers
parentb36108dc3c658317a30dd22cc296b49e75c302de (diff)
downloadserenity-b46dbfe7e49ea47c2e8b31e6b3472707631ee383.zip
WindowServer: Fix bad assertion when setting wallpaper
The create_thread() syscall returns the thread ID now, not 0.
Diffstat (limited to 'Servers')
-rw-r--r--Servers/WindowServer/WSCompositor.cpp2
1 files changed, 1 insertions, 1 deletions
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<void(bool)>&& call
return 0;
},
context.leak_ptr());
- ASSERT(rc == 0);
+ ASSERT(rc > 0);
return true;
}