mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
- 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:
parent
e66d0d8a49
commit
88b230362c
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue