diff options
Diffstat (limited to 'server/red-qxl.cpp')
-rw-r--r-- | server/red-qxl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/red-qxl.cpp b/server/red-qxl.cpp index 1135fd52..2979ae61 100644 --- a/server/red-qxl.cpp +++ b/server/red-qxl.cpp @@ -267,6 +267,11 @@ void spice_qxl_destroy_surface_wait(QXLInstance *instance, uint32_t surface_id) { RedWorkerMessageDestroySurfaceWait payload; + if (surface_id != 0) { + spice_warning("Invalid surface_id != 0: %u", surface_id); + return; + } + payload.surface_id = surface_id; instance->st->send_message(payload); } |