mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/win32-vd_agent
synced 2026-01-10 06:55:47 +00:00
Fails CCD initialisation if get_config_buffers detect WDDM is not present
There's no point continuing without WDDM as CCD cannot work without it. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Sameeh Jubran <sameeh@daynix.com>
This commit is contained in:
parent
67b63fe6f7
commit
b24a935335
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user