[PATCH] Added 2 functions to shell32

Dmitry Timoshkov dmitry at baikal.ru
Sun Feb 27 18:44:12 CST 2005


"Gianluigi Tiesi" <sherpya at netfarm.it> wrote:

> +BOOL WINAPI PathIsEqualOrSubFolder(LPCWSTR path1, LPCWSTR path2)
> +{
> + int i;
> + int len;
> + if (!path1 || !path2) return FALSE;
> +
> + len = strlenW(path1);
> + if (len > strlenW(path2)) return FALSE;
> +
> + for (i=0; i < len; i++)
> + if (path1[i] != path2[i]) return FALSE;
> + return TRUE;
> +}

You need to do a case insensitive comparison of paths.

Also, if you could use a usual for Wine formatting style with 4 space
indentation that would be very nice.

-- 
Dmitry.




More information about the wine-devel mailing list