mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
replace "search computer" start menu entry by a "not yet implemented" message to avoid the crash because of the currently missing SHFindComputer() implementation in shell32.dll
svn path=/trunk/; revision=18375
This commit is contained in:
parent
8ff67043ab
commit
e42612ca97
1 changed files with 3 additions and 1 deletions
|
@ -2011,7 +2011,7 @@ int StartMenuHandler::Command(int id, int code)
|
||||||
// browse menu
|
// browse menu
|
||||||
|
|
||||||
case IDC_NETWORK:
|
case IDC_NETWORK:
|
||||||
#ifdef _ROS_ // to be removed when network will be implemented
|
#ifdef _ROS_ ///@todo to be removed when network browsing will be implemented in shell namespace
|
||||||
MessageBox(0, TEXT("network not yet implemented"), ResString(IDS_TITLE), MB_OK);
|
MessageBox(0, TEXT("network not yet implemented"), ResString(IDS_TITLE), MB_OK);
|
||||||
#else
|
#else
|
||||||
CreateSubmenu(id, CSIDL_NETWORK, ResString(IDS_NETWORK));
|
CreateSubmenu(id, CSIDL_NETWORK, ResString(IDS_NETWORK));
|
||||||
|
@ -2062,11 +2062,13 @@ void StartMenuHandler::ShowSearchDialog()
|
||||||
|
|
||||||
void StartMenuHandler::ShowSearchComputer()
|
void StartMenuHandler::ShowSearchComputer()
|
||||||
{
|
{
|
||||||
|
#ifndef _ROS_ ///@todo to be removed when SHFindComputer() will be implemented in shell32.dll
|
||||||
static DynamicFct<SHFINDCOMPUTER> SHFindComputer(TEXT("SHELL32"), 91);
|
static DynamicFct<SHFINDCOMPUTER> SHFindComputer(TEXT("SHELL32"), 91);
|
||||||
|
|
||||||
if (SHFindComputer)
|
if (SHFindComputer)
|
||||||
(*SHFindComputer)(NULL, NULL);
|
(*SHFindComputer)(NULL, NULL);
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
MessageBox(0, TEXT("SHFindComputer() not yet implemented in SHELL32"), ResString(IDS_TITLE), MB_OK);
|
MessageBox(0, TEXT("SHFindComputer() not yet implemented in SHELL32"), ResString(IDS_TITLE), MB_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue