Re: Implement a typelib loader cache
"Mike Hearn" <mike(a)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? -- Dmitry.
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(a)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(a)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. -- Dmitry.
participants (2)
-
Dmitry Timoshkov -
Mike Hearn