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

2008-09-09 Thread Rob Shearman
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

Re: notepad: Only append .txt to missing files without a dot in them

2008-09-05 Thread Alexandre Julliard
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 +