[PATCH 09/14] Fails CCD initialisation if get_config_buffers detect WDDM is not present

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There's no point continuing without WDDM as CCD cannot work without it.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 vdagent/display_configuration.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vdagent/display_configuration.cpp b/vdagent/display_configuration.cpp
index 86f7f7b..5aed7be 100644
--- a/vdagent/display_configuration.cpp
+++ b/vdagent/display_configuration.cpp
@@ -844,6 +844,10 @@ bool CCD::get_config_buffers()
     LONG error(ERROR_SUCCESS);
     error = _pfnGetDisplayConfigBufferSizes(QDC_ALL_PATHS, &_numPathElements,
                                             &_numModeElements);
+    if (error == ERROR_NOT_SUPPORTED) {
+        vd_printf("GetDisplayConfigBufferSizes failed, missing WDDM");
+        throw std::exception();
+    }
     if (error) {
         vd_printf("%s: GetDisplayConfigBufferSizes failed with 0x%lx", __FUNCTION__, error);
         return false;
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]