2008/9/8 Alexander Nicolaysen Sørnes alex@thehandofagony.com:
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?