notepad: Only append .txt to missing files without a dot in them (try2)

Rob Shearman robertshearman at
Tue Sep 9 05:22:00 CDT 2008

2008/9/8 Alexander Nicolaysen Sørnes <alex at>:
> -            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 Shearman

More information about the wine-devel mailing list