mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 11:00:55 +00:00
[shell32.dll]
- Fix bug 6317. Patch by Edijs Kolesnikovics. svn path=/branches/shell32_new-bringup/; revision=53624
This commit is contained in:
parent
5291d19b25
commit
aee0ef5405
|
@ -2015,6 +2015,7 @@ INT_PTR CALLBACK ShellLink::SH_ShellLinkDlgProc(HWND hwndDlg, UINT uMsg, WPARAM
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
{
|
||||||
ppsp = (LPPROPSHEETPAGEW)lParam;
|
ppsp = (LPPROPSHEETPAGEW)lParam;
|
||||||
if (ppsp == NULL)
|
if (ppsp == NULL)
|
||||||
break;
|
break;
|
||||||
|
@ -2027,6 +2028,13 @@ INT_PTR CALLBACK ShellLink::SH_ShellLinkDlgProc(HWND hwndDlg, UINT uMsg, WPARAM
|
||||||
TRACE("sArgs: %S sComponent: %S sDescription: %S sIcoPath: %S sPath: %S sPathRel: %S sProduct: %S sWorkDir: %S\n", pThis->sArgs, pThis->sComponent, pThis->sDescription,
|
TRACE("sArgs: %S sComponent: %S sDescription: %S sIcoPath: %S sPath: %S sPathRel: %S sProduct: %S sWorkDir: %S\n", pThis->sArgs, pThis->sComponent, pThis->sDescription,
|
||||||
pThis->sIcoPath, pThis->sPath, pThis->sPathRel, pThis->sProduct, pThis->sWorkDir);
|
pThis->sIcoPath, pThis->sPath, pThis->sPathRel, pThis->sProduct, pThis->sWorkDir);
|
||||||
|
|
||||||
|
/* target location */
|
||||||
|
wchar_t * wTrgtLocat;
|
||||||
|
const int ch = '\\';
|
||||||
|
wTrgtLocat = wcsrchr(pThis->sWorkDir, ch)+1;
|
||||||
|
hDlgCtrl = GetDlgItem( hwndDlg, 14007 );
|
||||||
|
SendMessageW(hDlgCtrl, WM_SETTEXT, (WPARAM)NULL, (LPARAM)wTrgtLocat);
|
||||||
|
|
||||||
/* target path */
|
/* target path */
|
||||||
hDlgCtrl = GetDlgItem( hwndDlg, 14009 );
|
hDlgCtrl = GetDlgItem( hwndDlg, 14009 );
|
||||||
if ( hDlgCtrl != NULL )
|
if ( hDlgCtrl != NULL )
|
||||||
|
@ -2042,6 +2050,8 @@ INT_PTR CALLBACK ShellLink::SH_ShellLinkDlgProc(HWND hwndDlg, UINT uMsg, WPARAM
|
||||||
if ( hDlgCtrl != NULL )
|
if ( hDlgCtrl != NULL )
|
||||||
SendMessageW( hDlgCtrl, WM_SETTEXT, (WPARAM)NULL, (LPARAM)pThis->sDescription );
|
SendMessageW( hDlgCtrl, WM_SETTEXT, (WPARAM)NULL, (LPARAM)pThis->sDescription );
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
lppsn = (LPPSHNOTIFY) lParam;
|
lppsn = (LPPSHNOTIFY) lParam;
|
||||||
if ( lppsn->hdr.code == PSN_APPLY )
|
if ( lppsn->hdr.code == PSN_APPLY )
|
||||||
|
|
Loading…
Reference in a new issue