"Mike Hearn" mike@theoretic.com wrote:
Implement a typelib loader cache, minor debug message improvements
+ for (entry = tlb_cache_tail; entry != NULL; entry = entry->next) + if (!strcmpW(entry->path, szPath)) { + TRACE("cache hit\n");
Shouldn't this be a case insensitive comparison?
Yes, it should also be path normalized, but for some reason I remember that being more complex than I thought it'd be.
Which function should I use here? There is no strcasecmpW, in shlwapi there is a function which does that (StrCmpIW or something). Should I copy/paste that into unicode.h?
On Sun, 2003-08-10 at 02:12, Dmitry Timoshkov wrote:
"Mike Hearn" mike@theoretic.com wrote:
Implement a typelib loader cache, minor debug message improvements
- for (entry = tlb_cache_tail; entry != NULL; entry = entry->next)
- if (!strcmpW(entry->path, szPath)) {
- TRACE("cache hit\n");
Shouldn't this be a case insensitive comparison?
"Mike Hearn" mike@theoretic.com wrote:
Yes, it should also be path normalized, but for some reason I remember that being more complex than I thought it'd be.
Which function should I use here? There is no strcasecmpW, in shlwapi there is a function which does that (StrCmpIW or something). Should I copy/paste that into unicode.h?
Just use strcmpiW instead of strcmpW. It's also declared in wine/unicode.h and exported by libwine_unicode.