Commit 189800e0 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

view: Also show the filename in the window title when loading it from command line.

parent e1b8573e
...@@ -386,7 +386,10 @@ static void HandleCommandLine(LPWSTR cmdline) ...@@ -386,7 +386,10 @@ static void HandleCommandLine(LPWSTR cmdline)
cmdline++; cmdline++;
cmdline[lstrlenW(cmdline) - 1] = 0; cmdline[lstrlenW(cmdline) - 1] = 0;
} }
szFileTitle[0] = 0;
GetFileTitleW(cmdline, szFileTitle, sizeof(szFileTitle));
DoOpenFile(cmdline); DoOpenFile(cmdline);
UpdateWindowCaption();
} }
} }
......
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