28 Feb
2005
28 Feb
'05
12:44 a.m.
"Gianluigi Tiesi" <sherpya(a)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.