Re: notepad: Only append .txt to missing files without a dot in them
5 Sep
2008
5 Sep
'08
5:04 p.m.
Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> 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 + lstrlen(cmdline) - lstrlen(txtW))) + if (!lstrcmp(txtW, cmdline + lstrlen(cmdline) - lstrlen(txtW)) || + strchrW(cmdline, '.'))
There's no point in checking for .txt if any extension will match anyway. Also you should most likely check for a dot only in the filename, not in the whole path. -- Alexandre Julliard julliard(a)winehq.org
6310
Age (days ago)
6310
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard