Changeset 864
- Timestamp:
- Nov 11, 2007, 9:25:05 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/walkem.c
r847 r864 22 22 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 23 23 25 Aug 07 SHL Correct #pragma alloc_text typos 24 11 Nov 07 GKY Cancel now directly closes dialog even if directory path text has changed 24 25 25 26 ***********************************************************************/ … … 1080 1081 szBuff[strlen(szBuff) - 1] = 0; 1081 1082 MakeFullName(szBuff); 1082 if (*szBuff && stricmp(szBuff, wa->szCurrentPath) ) {1083 if (*szBuff && stricmp(szBuff, wa->szCurrentPath) && SHORT1FROMMP(mp1) != DID_CANCEL) { 1083 1084 if (!SetDir(WinQueryWindow(WinQueryWindow(hwnd, QW_PARENT), 1084 1085 QW_OWNER), hwnd, szBuff, 0)) 1085 1086 strcpy(wa->szCurrentPath, szBuff); 1086 else if (SHORT1FROMMP(mp1) != DID_CANCEL)1087 else //if (SHORT1FROMMP(mp1) != DID_CANCEL) 1087 1088 return 0; 1088 1089 } … … 1157 1158 case DID_CANCEL: 1158 1159 if (wa->changed) 1159 1160 WinSendMsg(hwnd, UM_SETUP3, MPVOID, MPVOID); 1160 1161 free(wa); 1161 1162 WinDismissDlg(hwnd, 0); … … 1502 1503 szBuff[strlen(szBuff) - 1] = 0; 1503 1504 MakeFullName(szBuff); 1504 if (*szBuff && stricmp(szBuff, wa->szCurrentPath1) ) {1505 if (*szBuff && stricmp(szBuff, wa->szCurrentPath1) && SHORT1FROMMP(mp1) != DID_CANCEL) { 1505 1506 if (!SetDir(WinQueryWindow(WinQueryWindow(hwnd, QW_PARENT), 1506 1507 QW_OWNER), hwnd, szBuff, 0)) 1507 1508 strcpy(wa->szCurrentPath1, szBuff); 1508 else if (SHORT1FROMMP(mp1) != DID_CANCEL)1509 else //if (SHORT1FROMMP(mp1) != DID_CANCEL) 1509 1510 return 0; 1510 1511 } … … 1518 1519 szBuff[strlen(szBuff) - 1] = 0; 1519 1520 MakeFullName(szBuff); 1520 if (*szBuff && stricmp(szBuff, wa->szCurrentPath2) ) {1521 if (*szBuff && stricmp(szBuff, wa->szCurrentPath2) && SHORT1FROMMP(mp1) != DID_CANCEL) { 1521 1522 if (!SetDir(WinQueryWindow(WinQueryWindow(hwnd, QW_PARENT), 1522 1523 QW_OWNER), hwnd, szBuff, 0)) 1523 1524 strcpy(wa->szCurrentPath2, szBuff); 1524 else if (SHORT1FROMMP(mp1) != DID_CANCEL)1525 else // if (SHORT1FROMMP(mp1) != DID_CANCEL) 1525 1526 return 0; 1526 1527 }
Note:
See TracChangeset
for help on using the changeset viewer.