From 316e5835a02cc761336983ac0c4a5aa4270cbcd9 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Sun, 26 Mar 2006 11:35:29 +0900 Subject: [PATCH] comctl32: Having an MRU list without a compare function works in Windows. --- dlls/comctl32/comctl32undoc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index aa79f8896b2..2812e34f87b 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -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,