summaryrefslogtreecommitdiff
path: root/vdagent
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2018-06-30 09:05:08 +0100
committerFrediano Ziglio <fziglio@redhat.com>2018-07-05 14:50:36 +0100
commitc0a6e42e809a5d177c4863ae24e43cf523ab0b4b (patch)
tree6c69c2a65163edcd517c3fe7ff28dadf2c03888f /vdagent
parent6a0683707f3fcebcca3d3e5aced46ec3024f3784 (diff)
Avoid declaring event_thread_id
As the value is never used we can pass NULL in CreateThread. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'vdagent')
-rw-r--r--vdagent/vdagent.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp
index 64055c4..fc8e727 100644
--- a/vdagent/vdagent.cpp
+++ b/vdagent/vdagent.cpp
@@ -255,7 +255,6 @@ DWORD WINAPI VDAgent::event_thread_proc(LPVOID param)
bool VDAgent::run()
{
DWORD session_id;
- DWORD event_thread_id;
HANDLE event_thread;
WNDCLASS wcls;
@@ -322,7 +321,7 @@ bool VDAgent::run()
return false;
}
_running = true;
- event_thread = CreateThread(NULL, 0, event_thread_proc, this, 0, &event_thread_id);
+ event_thread = CreateThread(NULL, 0, event_thread_proc, this, 0, NULL);
if (!event_thread) {
vd_printf("CreateThread() failed: %lu", GetLastError());
cleanup();