view: Also show the filename in the window title when loading it from commandline

André Hentschel nerv at dawncrow.de
Wed Mar 28 14:06:05 CDT 2012


missed that the first time, sry
---
 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();
     }
 }
 
-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list