mirror of https://github.com/FreeRDP/FreeRDP
fixed wrong returntype under windows
This commit is contained in:
parent
2862109337
commit
414d4b8f8e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue