diff --git a/reactos/subsys/system/explorer/dialogs/searchprogram.cpp b/reactos/subsys/system/explorer/dialogs/searchprogram.cpp index 2b177e10459..798c8838bdd 100644 --- a/reactos/subsys/system/explorer/dialogs/searchprogram.cpp +++ b/reactos/subsys/system/explorer/dialogs/searchprogram.cpp @@ -154,7 +154,7 @@ void FindProgramDlg::Refresh(bool delete_cache) TCHAR buffer[1024]; GetWindowText(GetDlgItem(_hwnd, IDC_TOPIC), buffer, 1024); -#ifndef __WINE__ //TODO +#ifndef __WINE__ ///@todo _tcslwr(buffer); #endif _lwr_filter = buffer; @@ -194,10 +194,7 @@ void FindProgramDlg::collect_programs_callback(ShellFolder& folder, ShellEntry* String menu_path; int len = pThis->_common_programs.size(); -#ifdef __WINE__ //TODO -#define _tcsnicmp strncasecmp -#define _tcsicoll strcasecmp -#endif + if (len && !_tcsnicmp(entry_path, pThis->_common_programs, len)) menu_path = ResString(IDS_ALL_USERS) + (String(entry_path)+len); else if ((len=pThis->_user_programs.size()) && !_tcsnicmp(entry_path, pThis->_user_programs, len)) diff --git a/reactos/subsys/system/explorer/utility/utility.h b/reactos/subsys/system/explorer/utility/utility.h index f6c85c019f9..83b43499eb3 100644 --- a/reactos/subsys/system/explorer/utility/utility.h +++ b/reactos/subsys/system/explorer/utility/utility.h @@ -101,6 +101,8 @@ extern void _wsplitpath(const WCHAR* path, WCHAR* drv, WCHAR* dir, WCHAR* name, #else extern void _splitpath(const CHAR* path, CHAR* drv, CHAR* dir, CHAR* name, CHAR* ext); #endif +#define _tcsnicmp strncasecmp +#define _tcsicoll strcasecmp #endif #ifndef FILE_ATTRIBUTE_NOT_CONTENT_INDEXED