Module: wine Branch: master Commit: 189800e04c43c623f8a9d4d1228e514b95b3efff URL: http://source.winehq.org/git/wine.git/?a=commit;h=189800e04c43c623f8a9d4d122...
Author: André Hentschel nerv@dawncrow.de Date: Wed Mar 28 21:06:05 2012 +0200
view: Also show the filename in the window title when loading it from command line.
---
programs/view/view.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/programs/view/view.c b/programs/view/view.c index ebd48aa..d32a10b 100644 --- a/programs/view/view.c +++ b/programs/view/view.c @@ -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(); } }