summaryrefslogtreecommitdiff
path: root/vdagent
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2018-06-30 05:46:19 +0100
committerFrediano Ziglio <fziglio@redhat.com>2018-07-18 11:05:05 +0100
commit6d1d4241ac9abc59970c4839845a2d174db58854 (patch)
treefe99352a0acdcdad15deacfd57891dfead53c63b /vdagent
parent9ddddf205f61b3451f37867a3bf7db455c773e53 (diff)
Use proper invalid value for _vio_serial
For some reason kernel handles in Windows have 2 invalid values depending on the type. Files/devices use INVALID_HANDLE_VALUE (-1), while others use NULL (0). As _vio_serial is a file, created with CreateFile, use INVALID_HANDLE_VALUE for consistency. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
Diffstat (limited to 'vdagent')
-rw-r--r--vdagent/vdagent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp
index 423c3ee..eed3103 100644
--- a/vdagent/vdagent.cpp
+++ b/vdagent/vdagent.cpp
@@ -198,7 +198,7 @@ VDAgent::VDAgent()
, _session_is_locked (false)
, _desktop_switch (false)
, _display_setting (VD_AGENT_REGISTRY_KEY)
- , _vio_serial (NULL)
+ , _vio_serial (INVALID_HANDLE_VALUE)
, _read_pos (0)
, _write_pos (0)
, _logon_desktop (false)