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

This commit is contained in:
André Hentschel 2012-03-28 21:06:05 +02:00 committed by Alexandre Julliard
parent e1b8573ee8
commit 189800e04c
1 changed files with 3 additions and 0 deletions

View File

@ -386,7 +386,10 @@ static void HandleCommandLine(LPWSTR cmdline)
cmdline++;
cmdline[lstrlenW(cmdline) - 1] = 0;
}
szFileTitle[0] = 0;
GetFileTitleW(cmdline, szFileTitle, sizeof(szFileTitle));
DoOpenFile(cmdline);
UpdateWindowCaption();
}
}