[Spice-devel] [PATCH vdagent-win 6/6] vdagent: add casting

Arnon Gilboa agilboa at redhat.com
Sun Jul 24 07:38:21 PDT 2011


---
 vdagent/desktop_layout.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vdagent/desktop_layout.cpp b/vdagent/desktop_layout.cpp
index 9bd1852..0eada52 100644
--- a/vdagent/desktop_layout.cpp
+++ b/vdagent/desktop_layout.cpp
@@ -67,7 +67,7 @@ void DesktopLayout::get_displays()
         }
         size_t size = _displays.size();
         if (!wcsstr(dev_info.DeviceString, L"QXL")) {
-            display_id = size;
+            display_id = (DWORD)size;
         } else if (!get_qxl_device_id(dev_info.DeviceKey, &display_id)) {
             vd_printf("get_qxl_device_id failed %S", dev_info.DeviceKey);
             break;
-- 
1.7.4.1



More information about the Spice-devel mailing list