Added return check for ConvertFromUnicode.

This commit is contained in:
Armin Novak 2017-07-24 08:53:21 +02:00
parent 3586f8502c
commit 9318707291

View File

@ -431,7 +431,8 @@ static UINT handle_hotplug(rdpdrPlugin* rdpdr)
if (device_ext->path == NULL)
continue;
ConvertFromUnicode(CP_UTF8, 0, device_ext->path, 0, &path, 0, NULL, FALSE);
if (ConvertFromUnicode(CP_UTF8, 0, device_ext->path, 0, &path, 0, NULL, FALSE) <= 0)
continue;
/* not plugable device */
if (strstr(path, "/Volumes/") == NULL)