Changeset 1009 for trunk/dll/common.c
- Timestamp:
- May 10, 2008, 9:51:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/common.c
r985 r1009 578 578 else { 579 579 if (mp1) { 580 if (!mp2 && !stricmp(lastfile, (CHAR *) 580 if (!mp2 && !stricmp(lastfile, (CHAR *)mp1)) 581 581 return 0; 582 strcpy(lastfile, (CHAR *) 582 strcpy(lastfile, (CHAR *)mp1); 583 583 s = xstrdup(lastfile, pszSrcFile, __LINE__); 584 584 } … … 587 587 if (!PostMsg((fComments) ? hwndAutoMLE : hwndAutoview, 588 588 UM_LOADFILE, MPFROMP(s), MPVOID)) { 589 xfree(s );589 xfree(s, pszSrcFile, __LINE__); 590 590 } 591 591 } … … 727 727 WinSendMsg(hwnd, UM_FIXCNRMLE, MPFROMLONG(CCHMAXPATH), MPVOID); 728 728 MLEdelete(WinWindowFromID(hwnd, CID_MLE), 729 0, strlen((CHAR *) 730 WinSetDlgItemText(hwnd, CID_MLE, (CHAR *) 731 p = strrchr((CHAR *) 729 0, strlen((CHAR *)mp1) + 1); 730 WinSetDlgItemText(hwnd, CID_MLE, (CHAR *)mp1); 731 p = strrchr((CHAR *)mp1, '\\'); 732 732 if (p) { 733 733 p++; 734 MLEsetcurposa(WinWindowFromID(hwnd, CID_MLE), (p - (CHAR *) 735 MLEsetcurposc(WinWindowFromID(hwnd, CID_MLE), strlen((CHAR *) 734 MLEsetcurposa(WinWindowFromID(hwnd, CID_MLE), (p - (CHAR *)mp1)); 735 MLEsetcurposc(WinWindowFromID(hwnd, CID_MLE), strlen((CHAR *)mp1)); 736 736 } 737 737 else 738 MLEsetcurpos(WinWindowFromID(hwnd, CID_MLE), strlen((CHAR *) 738 MLEsetcurpos(WinWindowFromID(hwnd, CID_MLE), strlen((CHAR *)mp1)); 739 739 } 740 740 else if (mp2) { … … 746 746 Broadcast(WinQueryAnchorBlock(hwnd), 747 747 dcd->hwndParent, UM_UPDATERECORD, mp2, MPVOID); 748 xfree(mp2 );748 xfree(mp2, pszSrcFile, __LINE__); 749 749 } 750 750 }
Note:
See TracChangeset
for help on using the changeset viewer.