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

Submitted by Arnon Gilboa on July 24, 2011, 9:38 p.m.

Details

Message ID 1311518301-1446-7-git-send-email-agilboa@redhat.com
State New, archived
Headers show

Not browsing as part of any series.

Commit Message

Arnon Gilboa July 24, 2011, 9:38 p.m.
---
 vdagent/desktop_layout.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

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;