Index: dll/shellext/netshell/netshell.cpp =================================================================== --- dll/shellext/netshell/netshell.cpp (revision 71417) +++ dll/shellext/netshell/netshell.cpp (working copy) @@ -70,4 +70,14 @@ CoTaskMemFree(pProps); } +BOOL +WINAPI +NcIsValidConnectionName(_In_ PCWSTR pszwName) +{ + if (!pszwName) + return FALSE; + else + return (wcspbrk(pszwName, L"\\/:*\t? <>|\"") == NULL); +} + } // extern "C" Index: dll/shellext/netshell/netshell.spec =================================================================== --- dll/shellext/netshell/netshell.spec (revision 71417) +++ dll/shellext/netshell/netshell.spec (working copy) @@ -21,7 +21,7 @@ 20 stub HrRunWizard 21 stub InvokeDunFile 22 stdcall NcFreeNetconProperties(ptr) -23 stub NcIsValidConnectionName +23 stdcall NcIsValidConnectionName(ptr) 24 stub NetSetupAddRasConnection 25 stub NetSetupFinishInstall 26 stub NetSetupInstallSoftware