- only display filename in the title for the file property dialog

- pass the stripped filename to SH_FileVersionDlgProc
- fix identation
- fix bug 3401

svn path=/trunk/; revision=34152
This commit is contained in:
Johannes Anderwald 2008-06-28 13:15:16 +00:00
parent e66d0d8a49
commit 88b230362c

View file

@ -669,6 +669,7 @@ SH_ShowPropertiesDialog(PCWSTR lpf)
WCHAR wFileName[MAX_PATH];
UINT num_pages = 0;
DWORD dwHandle = 0;
WCHAR * pFileName;
TRACE("SH_ShowPropertiesDialog entered filename %s\n", debugstr_w(lpf));
@ -709,18 +710,26 @@ SH_ShowPropertiesDialog(PCWSTR lpf)
num_pages++;
if ( GetFileVersionInfoSizeW(lpf, &dwHandle) )
{
if ( (hpage = SH_CreatePropertySheetPage("SHELL_FILE_VERSION_DLG",SH_FileVersionDlgProc, (LPARAM)lpf, NULL))!= NULL)
if ( (hpage = SH_CreatePropertySheetPage("SHELL_FILE_VERSION_DLG",SH_FileVersionDlgProc, (LPARAM)wFileName, NULL))!= NULL)
{
hppages[num_pages] = hpage;
num_pages++;
}
}
pFileName = wcsrchr(wFileName, '\\');
if (!pFileName)
pFileName = wFileName;
else
pFileName++;
memset(&pinfo, 0x0, sizeof(PROPSHEETHEADERW));
pinfo.dwSize = sizeof(PROPSHEETHEADERW);
pinfo.dwFlags = PSH_NOCONTEXTHELP | PSH_PROPTITLE;
pinfo.nPages = num_pages;
pinfo.u3.phpage = hppages;
pinfo.pszCaption = wFileName;
pinfo.pszCaption = pFileName;
return (PropertySheetW(&pinfo) != -1);
}
/*EOF */