2008/9/8 Alexander Nicolaysen Sørnes <[EMAIL PROTECTED]>:
> -if (!lstrcmp(txtW, cmdline + lstrlen(cmdline) - lstrlen(txtW)))
> +if (strchrW(PathFindFileNameW(cmdline), '.'))
You're using one shell helper function already so why not use
PathFindExtensionW instead?
--
Rob S
Alexander Nicolaysen Sørnes <[EMAIL PROTECTED]> writes:
> @@ -590,7 +591,8 @@ static void HandleCommandLine(LPWSTR cmdline)
> static const WCHAR txtW[] = { '.','t','x','t',0 };
>
> /* try to find file with ".txt" extension */
> -if (!lstrcmp(txtW, cmdline +