View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000958 | Plugins | Network | public | 2009-06-29 15:58 | 2021-12-02 15:20 |
Reporter | pm_kan | Assigned To | ctapmex | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | feedback | Resolution | open | ||
Platform | x86 | OS | Windows | OS Version | XP SP3 |
Product Version | 2.0 | ||||
Summary | 0000958: При переходе через net: с открытого ресурса на несуществующий текущим остается предыдущий ресурс | ||||
Description | Если из открытой шары/компьютера попытаться перейти на несуществующую (net:\\unavailable) не выдается сообщения об ошибке и текущей остается предыдущая шара/компьютер, что приводит к перечитыванию содержимого текущего каталога. В некоторых случаях это очень неудобно. | ||||
Steps To Reproduce | 1. net:\\existing_comp 2. cd existing_share 3. net:\\unavailable_comp | ||||
Additional Information | Приложенный патч выводит в данном случае сообщение "Не удается подсоединиться к %s" и переходит в корень. | ||||
Tags | No tags attached. | ||||
2009-06-29 15:58
|
unavail.patch (1,786 bytes)
Index: NetClass.cpp =================================================================== --- NetClass.cpp (revision 3202) +++ NetClass.cpp (working copy) @@ -1997,8 +1997,14 @@ NETRESOURCE res; NetResourceList::InitNetResource (res); - if (!GetResourceInfo (ComputerName, &res)) + if (!GetResourceInfo (ComputerName, &res)){ + TCHAR MsgText[300]; + FSF.sprintf(MsgText,GetMsg(MNetCannotConnectTo),ComputerName); + const TCHAR *MsgItems[]={GetMsg(MError),MsgText,GetMsg(MOk)}; + Info.Message(Info.ModuleNumber,FMSG_WARNING|FMSG_ERRORTYPE,NULL,MsgItems,ArraySize(MsgItems),1); + SetDirectory(_T("\\"), 0); return FALSE; + } /* if (!IsMSNetResource (res)) return FALSE; Index: NetEng.lng =================================================================== --- NetEng.lng (revision 3202) +++ NetEng.lng (working copy) @@ -22,6 +22,7 @@ "Cannot browse network" "Cannot connect \"%.40s\" to %s" +"Cannot connect to %s" "The disk name has a remembered connection" "If you do not close the open files, data may be lost." Index: NetLng.hpp =================================================================== --- NetLng.hpp (revision 3202) +++ NetLng.hpp (working copy) @@ -22,6 +22,7 @@ MNetCannotBrowse, MNetCannotConnect, + MNetCannotConnectTo, MAlreadyRemembered, MOpenFiles, Index: NetRus.lng =================================================================== --- NetRus.lng (revision 3202) +++ NetRus.lng (working copy) @@ -22,6 +22,7 @@ "�訡�� ��ᬮ�� ��" "�� 㤠���� ���ᮥ������ \"%.40s\" � %s" +"�� 㤠���� ���ᮥ�������� � %s" "�� ��� ��᪠ 㦥 ������⢮���� ��� ����������� ᮥ�������" "� �� �� ���� ������ 䠩��, �������� ����� ������." |
2009-07-03 11:18
|
unavail_1.patch (1,872 bytes)
Index: NetClass.cpp =================================================================== --- NetClass.cpp (revision 3219) +++ NetClass.cpp (working copy) @@ -1997,8 +1997,15 @@ NETRESOURCE res; NetResourceList::InitNetResource (res); - if (!GetResourceInfo (ComputerName, &res)) + if (!GetResourceInfo (ComputerName, &res)){ + TCHAR MsgText[300]; + FSF.sprintf(MsgText,GetMsg(MNetCannotConnectTo),ComputerName); + const TCHAR *MsgItems[]={GetMsg(MError),MsgText,GetMsg(MOk)}; + Info.Message(Info.ModuleNumber,FMSG_WARNING|FMSG_ERRORTYPE,NULL,MsgItems,ArraySize(MsgItems),1); + if ((!PCurResource) || (PCurResource->dwDisplayType!=RESOURCEDISPLAYTYPE_DOMAIN)) + SetDirectory(_T("\\"), 0); return FALSE; + } /* if (!IsMSNetResource (res)) return FALSE; Index: NetEng.lng =================================================================== --- NetEng.lng (revision 3219) +++ NetEng.lng (working copy) @@ -22,6 +22,7 @@ "Cannot browse network" "Cannot connect \"%.40s\" to %s" +"Cannot connect to %s" "The disk name has a remembered connection" "If you do not close the open files, data may be lost." Index: NetLng.hpp =================================================================== --- NetLng.hpp (revision 3219) +++ NetLng.hpp (working copy) @@ -22,6 +22,7 @@ MNetCannotBrowse, MNetCannotConnect, + MNetCannotConnectTo, MAlreadyRemembered, MOpenFiles, Index: NetRus.lng =================================================================== --- NetRus.lng (revision 3219) +++ NetRus.lng (working copy) @@ -22,6 +22,7 @@ "�訡�� ��ᬮ�� ��" "�� 㤠���� ���ᮥ������ \"%.40s\" � %s" +"�� 㤠���� ���ᮥ�������� � %s" "�� ��� ��᪠ 㦥 ������⢮���� ��� ����������� ᮥ�������" "� �� �� ���� ������ 䠩��, �������� ����� ������." |
|
unavail_1.patch: переход в корень только, если текущий ресурс не список комп. домена ("Избранное" считается доменом) |
|
сейчас не воспроизводится. переходит в список шар текущего компа |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-06-29 15:58 | pm_kan | New Issue | |
2009-06-29 15:58 | pm_kan | File Added: unavail.patch | |
2009-07-03 11:18 | pm_kan | File Added: unavail_1.patch | |
2009-07-03 11:20 | pm_kan | Note Added: 0003676 | |
2009-07-03 11:20 | pm_kan | Note Edited: 0003676 | |
2021-12-02 15:20 | ctapmex | Assigned To | => ctapmex |
2021-12-02 15:20 | ctapmex | Status | new => feedback |
2021-12-02 15:20 | ctapmex | Note Added: 0017257 |