[Spice-devel] [PATCH v3 2/5] Fails CCD initialisation if get_config_buffers detect WDDM is not present
Frediano Ziglio
fziglio at redhat.com
Thu Sep 1 14:54:06 UTC 2016
There's no point continuing without WDDM as CCD cannot work without it.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
vdagent/display_configuration.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/vdagent/display_configuration.cpp b/vdagent/display_configuration.cpp
index 2fa7089..29a1030 100644
--- a/vdagent/display_configuration.cpp
+++ b/vdagent/display_configuration.cpp
@@ -843,6 +843,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("GetDisplayConfigBufferSizes failed with 0x%lx", error);
return false;
--
2.7.4
More information about the Spice-devel
mailing list