Commit 5bc7b784 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

notepad: Improve handling of quoted filenames.

parent d93fa6a1
......@@ -571,8 +571,13 @@ static void HandleCommandLine(LPWSTR cmdline)
if (cmdline[0] == '"')
{
WCHAR* wc;
cmdline++;
cmdline[lstrlen(cmdline) - 1] = 0;
wc=cmdline;
/* Note: Double-quotes are not allowed in Windows filenames */
while (*wc && *wc != '"') wc++;
/* On Windows notepad ignores further arguments too */
*wc = 0;
}
if (FileExists(cmdline))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment