https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3801acb914f56a52cffe7…
commit 3801acb914f56a52cffe792dfa0b50d51741a920
Author: Yukinari Mitsu <bimy1280163(a)gn.iwasaki.ac.jp>
AuthorDate: Sun Jul 2 01:22:03 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Jul 1 19:22:03 2023 +0300
[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
---
dll/win32/shimgvw/shimgvw.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dll/win32/shimgvw/shimgvw.c b/dll/win32/shimgvw/shimgvw.c
index 47a34662826..8fad7c1a7b6 100644
--- a/dll/win32/shimgvw/shimgvw.c
+++ b/dll/win32/shimgvw/shimgvw.c
@@ -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);