fix WSACleanup condition
fixes https://github.com/gphoto/libgphoto2/issues/885
This commit is contained in:
@@ -3237,7 +3237,7 @@ exitfailed:
|
||||
(camera->port, GP_PORT_USB_ENDPOINT_INT);
|
||||
}
|
||||
#if defined(HAVE_LIBWS232) && defined(WIN32)
|
||||
else if ((camera->port!=NULL) && camera->port->type != GP_PORT_PTPIP) {
|
||||
else if ((camera->port!=NULL) && (camera->port->type == GP_PORT_PTPIP)) {
|
||||
WSACleanup();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user