[SHELL32]
[reactos.git] / reactos / dll / win32 / shell32 / shelllink.c
index 2d9ef1c..ae159cd 100644 (file)
@@ -2672,6 +2672,9 @@ SH_ShellLinkDlgProc(
            case 14021:
                if (This->sIcoPath)
                     wcscpy(szBuffer, This->sIcoPath);
+               else
+                    wcscpy(szBuffer, This->sPath);
+
                IconIndex = This->iIcoNdx;
                if (PickIconDlg(hwndDlg, szBuffer, MAX_PATH, &IconIndex))
                {
@@ -2825,7 +2828,7 @@ ShellLink_InvokeCommand( IContextMenu* iface, LPCMINVOKECOMMANDINFO lpici )
     }
     else if (This->sArgs != NULL)
     {
-        args = This->sArgs;
+        args = strdupW( This->sArgs );
     }
 
     memset( &sei, 0, sizeof sei );