Hi,
>> if (dwResult != ERROR_SUCCESS)
>> {
>> - tap_delete_adapter(NULL, &guidAdapter,
>> &bRebootRequired);
>> + /* failed renaming is not a fatal error, continue */
>> + dwResult = ERROR_SUCCESS;
>
>
> This looks strange. If we are going to rewrite dwResult, why set it and check
> it at all, just call
> tap_set_adapter() without storing the return value and add the comment.
I think this is good for documentation purposes - that we are aware
that function may fail, but in this case it is not fatal and we continue.
> Or, better, print a warning message saying the rename failed.
Warning is printed inside tap_delete_adapter().
--
-Lev
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel