summaryrefslogtreecommitdiff
path: root/vdagent
diff options
context:
space:
mode:
Diffstat (limited to 'vdagent')
-rw-r--r--vdagent/desktop_layout.cpp2
-rw-r--r--vdagent/vdagent.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/vdagent/desktop_layout.cpp b/vdagent/desktop_layout.cpp
index 26b6b53..ce259e1 100644
--- a/vdagent/desktop_layout.cpp
+++ b/vdagent/desktop_layout.cpp
@@ -273,7 +273,7 @@ bool DesktopLayout::init_dev_mode(LPCTSTR dev_name, DEVMODE* dev_mode, DisplayMo
ret = ChangeDisplaySettingsEx(dev_name, dev_mode, NULL, CDS_UPDATEREGISTRY, NULL);
}
- vd_printf("attach %d", ret);
+ vd_printf("attach %ld", ret);
hdc = CreateDC(dev_name, NULL, NULL, NULL);
}
diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp
index fd084a8..73ca39c 100644
--- a/vdagent/vdagent.cpp
+++ b/vdagent/vdagent.cpp
@@ -705,7 +705,7 @@ bool VDAgent::handle_clipboard(VDAgentClipboard* clipboard, uint32_t size)
if (err == ERROR_NOT_ENOUGH_MEMORY) {
vd_printf("Not enough memory to set clipboard data, size %u bytes", size);
} else {
- vd_printf("SetClipboardData failed: %u", err);
+ vd_printf("SetClipboardData failed: %lu", err);
}
}
fin:
@@ -1200,7 +1200,7 @@ bool VDAgent::init_vio_serial()
_vio_serial = CreateFile(VIOSERIAL_PORT_PATH, GENERIC_READ | GENERIC_WRITE , 0, NULL,
OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);
if (_vio_serial == INVALID_HANDLE_VALUE) {
- vd_printf("Failed opening %ls, error %u", VIOSERIAL_PORT_PATH, GetLastError());
+ vd_printf("Failed opening %ls, error %lu", VIOSERIAL_PORT_PATH, GetLastError());
return false;
}
return true;