1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-06-28 03:45:08 +03:00

[SEV-0011] Suppress New VNA dialog. (#12)

This commit is contained in:
mskorokhod 2022-06-04 14:45:08 +03:00 committed by GitHub
parent 55bfc6b77d
commit e7b1770099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5429,7 +5429,15 @@ void CmMainWindowOnCommandEx(HWND hWnd, WPARAM wParam, LPARAM lParam, bool easy)
// Installation is prohibited
break;
}
name = CmNewVLanDlg(hWnd);
char vlanDeviceName[MAX_DEVICE_NAME_LEN + 1] = {'\0'};
if (CiGetNextRecommendedVLanName(cm->Client, vlanDeviceName, MAX_DEVICE_NAME_LEN) == false)
{
// Could not get a recommended vlan name.
break;
}
name = CopyStr(vlanDeviceName);
if (name != NULL)
{
void *helper = NULL;