Re: [PATCH] Added 2 functions to shell32

2005-03-01 Thread Joris Huizer
Gianluigi Tiesi wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Changelog: ~ Fixed c:\test vs c:\test123 I really can implement it as m$ does but I think is very crazy to go around some dll, just to make a subpath match. Original m$ code calls: SHGetFolderPath, PathRemoveBackslash, PathCommo

Re: [PATCH] Added 2 functions to shell32

2005-03-01 Thread Gianluigi Tiesi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Changelog: ~ Fixed c:\test vs c:\test123 I really can implement it as m$ does but I think is very crazy to go around some dll, just to make a subpath match. Original m$ code calls: SHGetFolderPath, PathRemoveBackslash, PathCommonPrefix :) - -- Gianluig

Re: [PATCH] Added 2 functions to shell32

2005-02-28 Thread Jacek Caban
I doubt shell32 function on windows does this check, also original windows shell32 function is a lot more complicated and longer, I've compared the results between real and my code and they are correct. I wrote a small test for this function showing that your implementation is almost correct. It

Re: [PATCH] Added 2 functions to shell32

2005-02-28 Thread Gianluigi Tiesi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitry Timoshkov wrote: | "Gianluigi Tiesi" <[EMAIL PROTECTED]> wrote: | | |>+BOOL WINAPI PathIsEqualOrSubFolder(LPCWSTR path1, LPCWSTR path2) |>+{ |>+ int i; |>+ int len; |>+ if (!path1 || !path2) return FALSE; |>+ |>+ len = strlenW(path1); |>+ if (len

Re: [PATCH] Added 2 functions to shell32

2005-02-27 Thread Dmitry Timoshkov
"Gianluigi Tiesi" <[EMAIL PROTECTED]> 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 (pa