Changeset 1692
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1690 r1692 2962 2962 if (dcd->directory && fFileNameCnrPath && 2963 2963 stricmp(lastextractpath, dcd->directory)) { 2964 strcpy(lastextractpath, dcd->directory); 2964 strcpy(lastextractpath, dcd->directory); 2965 //DbgMsg(pszSrcFile, __LINE__, "Extract dir %s", dcd->directory); 2965 2966 SetDir(dcd->hwndParent, hwnd, dcd->directory, 1); 2966 2967 } … … 3676 3677 else 3677 3678 strcpy(dcd->directory, extractpath); 3678 } 3679 if (!*dcd->directory && fFileNameCnrPath && dcd->arcname) { 3679 } 3680 // Removed because it can't be set from inside the container and names with a space 3681 // break it. I don't think it makes sense from the container any way GKY 8-10-13 3682 /*if (!*dcd->directory && fFileNameCnrPath && dcd->arcname) { 3680 3683 strcpy(fullname, dcd->arcname); 3681 3684 p = strrchr(fullname, '.'); 3682 if (p) 3683 *p = 0; 3685 if (p) { 3686 *p = 0; 3687 } 3684 3688 else { 3685 3689 p = fullname + strlen(fullname); 3686 3687 3690 p--; 3691 *p = 0; 3688 3692 } 3689 3693 strcpy(dcd->directory, fullname); 3690 } 3694 } */ 3691 3695 if (!*dcd->directory && *lastextractpath) { 3692 3696 //DosEnterCritSec(); //GKY 11-29-08 -
trunk/dll/extract.c
r1546 r1692 153 153 strcpy(FileName, arcdata->arcname); 154 154 p = strrchr(FileName, '.'); 155 if (p) 155 if (p) { 156 156 *p = 0; 157 if (strchr(FileName, '\"')) 158 memmove(FileName, FileName + 1, strlen(FileName) + 1); 159 } 157 160 else { 158 161 p = FileName + strlen(arcdata->arcname); 159 162 p--; 160 163 *p = 0; 164 if (strchr(FileName, '\"')) 165 memmove(FileName , FileName + 1, strlen(FileName) + 1); 161 166 } 162 167 strcpy(arcdata->extractdir, FileName); … … 296 301 strcpy(FileName, arcdata->arcname); 297 302 p = strrchr(FileName, '.'); 298 if (p) 299 *p = 0; 303 if (p) { 304 *p = 0; 305 if (strchr(FileName, '\"')) 306 memmove(FileName, FileName + 1, strlen(FileName) + 1); 307 } 300 308 else { 301 309 p = FileName + strlen(arcdata->arcname); 302 310 p--; 303 311 *p = 0; 312 if (strchr(FileName, '\"')) 313 memmove(FileName, FileName + 1, strlen(FileName) + 1); 304 314 } 305 315 strcpy(arcdata->extractdir, FileName);
Note:
See TracChangeset
for help on using the changeset viewer.