fixed wrong returntype under windows

This commit is contained in:
Martin Haimberger 2015-07-30 07:50:10 -07:00
parent 2862109337
commit 414d4b8f8e
1 changed files with 8 additions and 3 deletions

View File

@ -248,10 +248,15 @@ static void* drive_hotplug_thread_func(void* arg)
return NULL;
}
static void drive_hotplug_thread_terminate(rdpdrPlugin* rdpdr)
static WIN32ERROR drive_hotplug_thread_terminate(rdpdrPlugin* rdpdr)
{
if (rdpdr->hotplug_wnd)
PostMessage(rdpdr->hotplug_wnd, WM_QUIT, 0, 0);
WIN32ERROR error = CHANNEL_RC_OK;
if (rdpdr->hotplug_wnd && !PostMessage(rdpdr->hotplug_wnd, WM_QUIT, 0, 0))
{
error = GetLastError();
WLog_ERR(TAG, "PostMessage failed with error %lu", error);
}
return error;
}
#else