Changeset 1616 for trunk/dll/assoc.c
- Timestamp:
- Aug 13, 2011, 8:32:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/assoc.c
r1594 r1616 27 27 01 May 10 GKY Changes to move environment storage to INI file 28 28 03 Jul 11 GKY Fixed failure to save associations after reordering item to the top or bottom. 29 13 Aug 11 GKY Change to Doxygen comment format 29 30 30 31 **************************************************************************************/ … … 195 196 !xfgets(offset, sizeof(offset), fp, pszSrcFile, __LINE__) || 196 197 !xfgets(flags, sizeof(flags), fp, pszSrcFile, __LINE__)) 197 break; / * error! */198 break; // error! 198 199 pszCmdLine[MaxComLineStrg - 1] = 0; 199 200 bstripcr(pszCmdLine); … … 241 242 VOID display_associations(HWND hwnd, ASSOC *temp, LINKASSOC *info) 242 243 { 243 //CHAR szEnviroment[ENVIRONMENT_SIZE];244 244 PSZ pszDisplayStr; 245 245 SHORT x; 246 246 247 //*szEnviroment = 0;248 //WinQueryDlgItemText(hwnd, ASS_ENVIRON, ENVIRONMENT_SIZE - 1, szEnviroment);249 //bstripcr(szEnviroment);250 //if (*szEnviroment)251 // PrfWriteProfileString(fmprof, FM3Str, temp->pszCmdLine, szEnviroment);252 247 pszDisplayStr = xmallocz((CCHMAXPATH * 2) + MaxComLineStrg + 6, 253 248 pszSrcFile, __LINE__); … … 289 284 next = info->next; 290 285 if (!strcmp("*", info->mask)) { 291 if (info != asshead) { / * already top record */286 if (info != asshead) { // already top record 292 287 if (info->prev) 293 288 (info->prev)->next = info->next; … … 371 366 } 372 367 else { 373 if (!asshead) / * only item in list */368 if (!asshead) // only item in list 374 369 asshead = asstail = info; 375 370 else { 376 if (asstail) { / * place at tail */371 if (asstail) { // place at tail 377 372 asstail->next = info; 378 373 info->prev = asstail; … … 505 500 fclose(fp); 506 501 } 507 if (didmatch) { / * got a match; do it... */502 if (didmatch) { // got a match; do it... 508 503 509 504 CHAR *list[2]; … … 807 802 info = add_association(&temp); 808 803 if (!info) 809 WinDismissDlg(hwnd, 1); /* Runtime_Error(pszSrcFile, __LINE__, "add_association"); */804 WinDismissDlg(hwnd, 1); 810 805 else { 811 806 display_associations(hwnd, &temp, info);
Note:
See TracChangeset
for help on using the changeset viewer.