Changeset 1791 for trunk/dll/extract.c
- Timestamp:
- Aug 31, 2014, 8:13:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/extract.c
r1717 r1791 23 23 if the name needed quoting. 24 24 15 Feb 14 GKY Assure the title is blank on the execute dialog call with the "see" button 25 31 Aug 14 GKY Fix failure to remove leading quote on toogle of extract directory to and 26 from using file name. 25 27 26 28 ***********************************************************************/ … … 165 167 p--; 166 168 *p = 0; 167 if (strchr(FileName, '\"') )169 if (strchr(FileName, '\"') == strrchr(FileName, '\"')) 168 170 memmove(FileName , FileName + 1, strlen(FileName) + 1); 169 171 } … … 307 309 *p = 0; 308 310 if (strchr(FileName, '\"')) 309 memmove(FileName, FileName + 1, strlen(FileName) + 1);311 memmove(FileName, FileName + 1, strlen(FileName) + 1); 310 312 } 311 313 else { … … 313 315 p--; 314 316 *p = 0; 315 if (strchr(FileName, '\"') )316 memmove(FileName, FileName + 1, strlen(FileName) + 1);317 if (strchr(FileName, '\"') == strrchr(FileName, '\"')) 318 memmove(FileName, FileName + 1, strlen(FileName) + 1); 317 319 } 318 320 strcpy(arcdata->extractdir, FileName); … … 354 356 strcpy(arcdata->extractdir, pFM2SaveDirectory); 355 357 } 358 if (strchr(arcdata->extractdir, '\"') == strrchr(arcdata->extractdir, '\"')) 359 memmove(arcdata->extractdir, arcdata->extractdir + 1, 360 strlen(arcdata->extractdir) + 1); 356 361 WinSetDlgItemText(hwnd, EXT_DIRECTORY, arcdata->extractdir); 357 362 }
Note:
See TracChangeset
for help on using the changeset viewer.