mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[SHIMGVW] Display filename in taskbar even if the file isn't loaded (#5379)
If the file could not be loaded, its name wasn't displayed in the taskbar. Now, always display the file name in all cases. CORE-18954
This commit is contained in:
parent
4328b858e5
commit
3801acb914
1 changed files with 3 additions and 2 deletions
|
@ -524,9 +524,10 @@ pLoadImageFromNode(SHIMGVW_FILENODE *node, HWND hwnd)
|
|||
pLoadImage(node->FileName);
|
||||
|
||||
LoadStringW(hInstance, IDS_APPTITLE, szResStr, _countof(szResStr));
|
||||
if (image != NULL)
|
||||
|
||||
pchFileTitle = PathFindFileNameW(node->FileName);
|
||||
if (pchFileTitle && *pchFileTitle)
|
||||
{
|
||||
pchFileTitle = PathFindFileNameW(node->FileName);
|
||||
StringCbPrintfW(szTitleBuf, sizeof(szTitleBuf),
|
||||
L"%ls%ls%ls", szResStr, L" - ", pchFileTitle);
|
||||
SetWindowTextW(hwnd, szTitleBuf);
|
||||
|
|
Loading…
Reference in a new issue