view: Also show the filename in the window title when loading it from command line.
This commit is contained in:
parent
e1b8573ee8
commit
189800e04c
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue