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
-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
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
-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
"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