comctl32: Having an MRU list without a compare function works in Windows.

This commit is contained in:
Mike McCormack 2006-03-26 11:35:29 +09:00 committed by Alexandre Julliard
parent 8c29b7dc8b
commit 316e5835a0
1 changed files with 1 additions and 3 deletions

View File

@ -386,10 +386,8 @@ INT WINAPI FindMRUData (HANDLE hList, LPCVOID lpData, DWORD cbData,
UINT i;
LPSTR dataA = NULL;
if (!mp->extview.lpfnCompare) {
ERR("MRU list not properly created. No compare procedure.\n");
if (!mp->extview.lpfnCompare)
return -1;
}
if(!(mp->extview.dwFlags & MRUF_BINARY_LIST) && !mp->isUnicode) {
DWORD len = WideCharToMultiByte(CP_ACP, 0, lpData, -1,