else
{
String WhereExpr = __keyWord;
+ WhereExpr.Replace(L"'", L"\\'");
// WhereExpr = CommonUtil::SpecialReplaceChange(__keyWord);
WhereExpr = CommonUtil::MakeQuery(STRING_SORT_ARTIST, WhereExpr);
String SearchKeyword(WhereExpr);
SearchKeyword.Append(L" AND ");
+ WhereExpr = *pContentFileName;
+ WhereExpr.Replace(L"'", L"\\'");
//WhereExpr = CommonUtil::SpecialReplaceChange(*pContentFileName);
WhereExpr = CommonUtil::MakeQuery(STRING_SORT_ALBUM, *pContentFileName);
return;
}
+ __pArtistContentList = pContentSearchResultList;
+
String tempAlbumName;
int contentTotalCount = pContentSearchResultList->GetCount();
for (int iCount = 0; iCount < contentTotalCount; iCount++)
}
}
- pContentSearchResultList->RemoveAll(true);
- delete pContentSearchResultList;
+// pContentSearchResultList->RemoveAll(true);
+// delete pContentSearchResultList;
- __pArtistContentList = CommonUtil::ContentSearchResultListN(keyWord, STRING_SORT_ARTIST, /*STRING_SORT_TITLE*/ STRING_SORT_ALBUM);
+// __pArtistContentList = CommonUtil::ContentSearchResultListN(keyWord, STRING_SORT_ARTIST, /*STRING_SORT_TITLE*/ STRING_SORT_ALBUM);
AppLogDebug("EXIT");
}
}
String* pContentFileName = static_cast<String*>(__pArtistAlbumList->GetAt(albumIndex));
+ AppLogDebug("pContentFileName(%ls), __keyWord(%ls)", pContentFileName->GetPointer(), __keyWord.GetPointer());
if (pContentFileName == null)
{
AppLogDebug("EXIT(pContentFileName is null");
{
String WhereExpr = __keyWord;
// WhereExpr = CommonUtil::SpecialReplaceChange(__keyWord);
+ WhereExpr.Replace(L"'", L"\\'");
WhereExpr = CommonUtil::MakeQuery(STRING_SORT_ARTIST, WhereExpr);
String SearchKeyword(WhereExpr);
SearchKeyword.Append(L" AND ");
+ WhereExpr = *pContentFileName;
+ WhereExpr.Replace(L"'", L"\\'");
//WhereExpr = CommonUtil::SpecialReplaceChange(*pContentFileName);
- WhereExpr = CommonUtil::MakeQuery(STRING_SORT_ALBUM, *pContentFileName);
+ WhereExpr = CommonUtil::MakeQuery(STRING_SORT_ALBUM, WhereExpr);
SearchKeyword.Append(WhereExpr);
__pArtistAlbumContentList = CommonUtil::SearchContentList(SearchKeyword, STRING_SORT_TITLE);