Changeset 1321
- Timestamp:
- Dec 7, 2008, 2:48:06 AM (17 years ago)
- Location:
- trunk/dll
- Files:
-
- 13 edited
-
arccnrs.c (modified) (7 diffs)
-
assoc.c (modified) (16 diffs)
-
avl.h (modified) (1 diff)
-
copyf.c (modified) (2 diffs)
-
dirs.c (modified) (2 diffs)
-
dirsize.c (modified) (3 diffs)
-
fm3res.rc (modified) (1 diff)
-
inis.c (modified) (4 diffs)
-
mainwnd.c (modified) (2 diffs)
-
srchpath.c (modified) (3 diffs)
-
systemf.c (modified) (1 diff)
-
walkem.c (modified) (3 diffs)
-
walkem.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1314 r1321 637 637 fp = xfopen(arctemp, "w", pszSrcFile, __LINE__); 638 638 if (!fp) { 639 xfree(arctemp, pszSrcFile, __LINE__);640 return 0;639 xfree(arctemp, pszSrcFile, __LINE__); 640 return 0; 641 641 } 642 642 else { … … 646 646 if (rc) { 647 647 Dos_Error(MB_CANCEL, rc, hwndCnr, pszSrcFile, __LINE__, 648 "DosDupHandle");649 xfree(arctemp, pszSrcFile, __LINE__);648 "DosDupHandle"); 649 xfree(arctemp, pszSrcFile, __LINE__); 650 650 return 0; 651 651 } … … 657 657 Dos_Error(MB_CANCEL, rc, hwndCnr, pszSrcFile, __LINE__, 658 658 "DosDupHandle"); 659 xfree(arctemp, pszSrcFile, __LINE__);660 return 0;659 xfree(arctemp, pszSrcFile, __LINE__); 660 return 0; 661 661 } 662 662 else { … … 812 812 pai->flags = ARCFLAGS_REALDIR; 813 813 pai->pszFileName = xstrdup(fname,pszSrcFile, __LINE__); 814 # ifdef FORTIFY 815 // Will be freed by WM_DESTROY 816 Fortify_SetOwner(pai->pszFileName, 1); 817 // Fortify_ChangeScope(pai->pszFileName, -1); 818 # endif 819 814 820 pai->pszDisplayName = pai->pszFileName; 815 821 pai->rc.pszIcon = pai->pszDisplayName; … … 1656 1662 1657 1663 if (li && li->list && li->list[0]) { 1658 printf("%x/r", li->type); fflush(stdout);1664 // printf("%x/r", li->type); fflush(stdout); // 24 Sep 08 SHL 1659 1665 switch (li->type) { 1660 1666 case IDM_ARCHIVE: … … 3706 3712 } 3707 3713 else { 3714 # ifdef FORTIFY 3715 // Will be freed by WM_DESTROY 3716 Fortify_ChangeScope(dcd, -1); 3717 # endif 3708 3718 dcd->size = sizeof(DIRCNRDATA); 3709 3719 dcd->id = id; 3710 3720 dcd->type = ARC_FRAME; 3711 3721 if (!pTmpDir) 3712 strcpy(dcd->workdir, pFM2SaveDirectory); 3713 MakeTempName(dcd->workdir, ArcTempRoot, 2); 3714 /*if (dcd->workdir[strlen(dcd->workdir) - 1] != '\\') 3722 strcpy(dcd->workdir, pFM2SaveDirectory); 3723 MakeTempName(dcd->workdir, ArcTempRoot, 2); 3724 #if 0 // 06 Sep 08 SHL fixme to be gone 3725 if (dcd->workdir[strlen(dcd->workdir) - 1] != '\\') 3715 3726 strcat(dcd->workdir, "\\"); 3716 3727 sprintf(dcd->workdir + strlen(dcd->workdir), "%s.%03x", … … 3718 3729 else 3719 3730 sprintf(dcd->workdir, "%s.%03x", 3720 ArcTempRoot, (clock() & 4095));*/ 3731 ArcTempRoot, (clock() & 4095)); 3732 #endif // 06 Sep 08 SHL fixme to be gone 3721 3733 strcpy(dcd->arcname, fullname); 3722 3734 if (*extractpath) { -
trunk/dll/assoc.c
r1220 r1321 234 234 PrfWriteProfileString(fmprof, FM3Str, temp->pszCmdLine, szEnviroment); 235 235 pszDisplayStr = xmallocz((CCHMAXPATH * 2) + MaxComLineStrg + 6, 236 pszSrcFile, __LINE__);236 pszSrcFile, __LINE__); 237 237 if (pszDisplayStr) { 238 238 sprintf(pszDisplayStr, "%-12s \x1a %-24s %s%s%s", temp->mask, 239 temp->pszCmdLine, (*temp->sig) ?240 "[" : NullStr, (*temp->sig) ? temp->sig : NullStr,241 (*temp->sig) ? "]" : NullStr);239 temp->pszCmdLine, (*temp->sig) ? 240 "[" : NullStr, (*temp->sig) ? temp->sig : NullStr, 241 (*temp->sig) ? "]" : NullStr); 242 242 x = (SHORT) WinSendDlgItemMsg(hwnd, 243 ASS_LISTBOX,244 LM_INSERTITEM,245 MPFROM2SHORT(LIT_END, 0), MPFROMP(pszDisplayStr));243 ASS_LISTBOX, 244 LM_INSERTITEM, 245 MPFROM2SHORT(LIT_END, 0), MPFROMP(pszDisplayStr)); 246 246 if (x >= 0) { 247 247 WinSendDlgItemMsg(hwnd, 248 ASS_LISTBOX,249 LM_SETITEMHANDLE,250 MPFROMSHORT(x), MPFROMP(info));248 ASS_LISTBOX, 249 LM_SETITEMHANDLE, 250 MPFROMSHORT(x), MPFROMP(info)); 251 251 WinSendDlgItemMsg(hwnd, 252 ASS_LISTBOX,253 LM_SELECTITEM,254 MPFROMSHORT(x), MPFROMSHORT(TRUE));252 ASS_LISTBOX, 253 LM_SELECTITEM, 254 MPFROMSHORT(x), MPFROMSHORT(TRUE)); 255 255 } 256 256 free(pszDisplayStr); … … 297 297 ";\n%0.*s\n%0.*s\n%0.*s\n%lu\n%lu\n", 298 298 CCHMAXPATH, 299 info->mask,300 MaxComLineStrg,299 info->mask, 300 MaxComLineStrg, 301 301 info->pszCmdLine, 302 302 CCHMAXPATH, … … 422 422 } 423 423 else 424 exclude = FALSE;425 didmatch = wildcard((strchr(p, '\\') ||426 strchr(p, ':')) ? datafile : file, p, FALSE);424 exclude = FALSE; 425 didmatch = wildcard((strchr(p, '\\') || 426 strchr(p, ':')) ? datafile : file, p, FALSE); 427 427 if (exclude && didmatch) 428 428 didmatch = FALSE; … … 480 480 info->pszCmdLine, 481 481 flags, 482 NULL, list, GetPString(IDS_EXECASSOCTITLETEXT),483 pszSrcFile, __LINE__);482 NULL, list, GetPString(IDS_EXECASSOCTITLETEXT), 483 pszSrcFile, __LINE__); 484 484 if (rc != -1 && dieafter) 485 485 PostMsg((HWND) 0, WM_QUIT, MPVOID, MPVOID); … … 534 534 535 535 pszDisplayStr = xmallocz((CCHMAXPATH * 2) + MaxComLineStrg + 6, 536 pszSrcFile, __LINE__);536 pszSrcFile, __LINE__); 537 537 if (pszDisplayStr) { 538 WinSendDlgItemMsg(hwnd, ASS_LISTBOX, LM_DELETEALL, MPVOID, MPVOID);539 info = asshead;540 while (info) {541 sprintf(pszDisplayStr,542 "%-12s \x1a %-24s %s%s%s",543 info->mask,544 info->pszCmdLine,545 (info->sig && *info->sig) ?546 "[" : NullStr,547 (info->sig && *info->sig) ? info->sig : NullStr,548 (info->sig && *info->sig) ? "]" : NullStr);549 x = (SHORT) WinSendDlgItemMsg(hwnd,550 ASS_LISTBOX,551 LM_INSERTITEM,552 MPFROM2SHORT(LIT_END, 0), MPFROMP(pszDisplayStr));553 if (x >= 0)554 WinSendDlgItemMsg(hwnd,555 ASS_LISTBOX,556 LM_SETITEMHANDLE, MPFROMSHORT(x), MPFROMP(info));557 info = info->next;558 }559 WinSendDlgItemMsg(hwnd,560 ASS_LISTBOX,561 LM_SELECTITEM, MPFROMSHORT(0), MPFROMSHORT(TRUE));562 xfree(pszDisplayStr, pszSrcFile, __LINE__);538 WinSendDlgItemMsg(hwnd, ASS_LISTBOX, LM_DELETEALL, MPVOID, MPVOID); 539 info = asshead; 540 while (info) { 541 sprintf(pszDisplayStr, 542 "%-12s \x1a %-24s %s%s%s", 543 info->mask, 544 info->pszCmdLine, 545 (info->sig && *info->sig) ? 546 "[" : NullStr, 547 (info->sig && *info->sig) ? info->sig : NullStr, 548 (info->sig && *info->sig) ? "]" : NullStr); 549 x = (SHORT) WinSendDlgItemMsg(hwnd, 550 ASS_LISTBOX, 551 LM_INSERTITEM, 552 MPFROM2SHORT(LIT_END, 0), MPFROMP(pszDisplayStr)); 553 if (x >= 0) 554 WinSendDlgItemMsg(hwnd, 555 ASS_LISTBOX, 556 LM_SETITEMHANDLE, MPFROMSHORT(x), MPFROMP(info)); 557 info = info->next; 558 } 559 WinSendDlgItemMsg(hwnd, 560 ASS_LISTBOX, 561 LM_SELECTITEM, MPFROMSHORT(0), MPFROMSHORT(TRUE)); 562 xfree(pszDisplayStr, pszSrcFile, __LINE__); 563 563 } 564 564 } … … 683 683 684 684 *filename = 0; 685 if (insert_filename(hwnd, filename, 2, FALSE) && *filename) {686 BldQuotedFileName(szfilename, filename);685 if (insert_filename(hwnd, filename, 2, FALSE) && *filename) { 686 BldQuotedFileName(szfilename, filename); 687 687 strcat(szfilename, " %a"); 688 688 WinSetDlgItemText(hwnd, ASS_CL, szfilename); … … 694 694 { 695 695 ASSOC temp; 696 CHAR dummy[34];697 PSZ pszWorkBuf;698 replace = FALSE;699 700 memset(&temp, 0, sizeof(ASSOC));701 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);702 if (!temp.pszCmdLine)703 break; //already complained696 CHAR dummy[34]; 697 PSZ pszWorkBuf; 698 replace = FALSE; 699 700 memset(&temp, 0, sizeof(ASSOC)); 701 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__); 702 if (!temp.pszCmdLine) 703 break; //already complained 704 704 705 705 { … … 712 712 LM_SELECTITEM, 713 713 MPFROMSHORT(0), MPFROMSHORT(TRUE)); 714 }715 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__);716 if (!pszWorkBuf) {717 free(temp.pszCmdLine);718 break; //already complained719 }714 } 715 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 716 if (!pszWorkBuf) { 717 free(temp.pszCmdLine); 718 break; //already complained 719 } 720 720 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 721 WinQueryDlgItemText(hwnd, ASS_CL, MaxComLineStrg, temp.pszCmdLine);722 if (strcmp(temp.pszCmdLine, "<>")) {723 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine);724 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1);725 }726 free(pszWorkBuf);721 WinQueryDlgItemText(hwnd, ASS_CL, MaxComLineStrg, temp.pszCmdLine); 722 if (strcmp(temp.pszCmdLine, "<>")) { 723 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine); 724 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 725 } 726 free(pszWorkBuf); 727 727 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 728 728 rstrip(temp.sig); … … 748 748 temp.flags |= DIEAFTER; 749 749 if (WinQueryButtonCheckstate(hwnd, ASS_PROMPT)) 750 temp.flags |= PROMPT;751 if (fCancelAction){752 fCancelAction = FALSE;753 free(temp.pszCmdLine);754 break;755 }756 else750 temp.flags |= PROMPT; 751 if (fCancelAction){ 752 fCancelAction = FALSE; 753 free(temp.pszCmdLine); 754 break; 755 } 756 else 757 757 info = add_association(&temp); 758 758 if (!info) 759 759 WinDismissDlg(hwnd, 1); /* Runtime_Error(pszSrcFile, __LINE__, "add_association"); */ 760 else {761 display_associations(hwnd, &temp, info);760 else { 761 display_associations(hwnd, &temp, info); 762 762 save_associations(); 763 }764 free(temp.pszCmdLine);763 } 764 free(temp.pszCmdLine); 765 765 } 766 766 WinDismissDlg(hwnd, 1); … … 780 780 { 781 781 ASSOC temp; 782 CHAR dummy[34];783 PSZ pszWorkBuf;784 replace = FALSE;785 786 memset(&temp, 0, sizeof(ASSOC));787 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);788 if (!temp.pszCmdLine)789 break; //already complained790 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__);791 if (!pszWorkBuf) {792 free(temp.pszCmdLine);793 break; //already complained794 }795 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask);796 WinQueryDlgItemText(hwnd, ASS_CL, MaxComLineStrg, temp.pszCmdLine);797 if (strcmp(temp.pszCmdLine, "<>")) {798 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine);799 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1);800 }801 free(pszWorkBuf);782 CHAR dummy[34]; 783 PSZ pszWorkBuf; 784 replace = FALSE; 785 786 memset(&temp, 0, sizeof(ASSOC)); 787 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__); 788 if (!temp.pszCmdLine) 789 break; //already complained 790 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 791 if (!pszWorkBuf) { 792 free(temp.pszCmdLine); 793 break; //already complained 794 } 795 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 796 WinQueryDlgItemText(hwnd, ASS_CL, MaxComLineStrg, temp.pszCmdLine); 797 if (strcmp(temp.pszCmdLine, "<>")) { 798 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine); 799 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 800 } 801 free(pszWorkBuf); 802 802 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 803 803 rstrip(temp.sig); … … 823 823 temp.flags |= DIEAFTER; 824 824 if (WinQueryButtonCheckstate(hwnd, ASS_PROMPT)) 825 temp.flags |= PROMPT;826 if (fCancelAction){827 fCancelAction = FALSE;828 free(temp.pszCmdLine);829 break;830 }831 else832 info = add_association(&temp);825 temp.flags |= PROMPT; 826 if (fCancelAction){ 827 fCancelAction = FALSE; 828 free(temp.pszCmdLine); 829 break; 830 } 831 else 832 info = add_association(&temp); 833 833 //Add will fail if mask is not changed 834 834 if (info) { 835 display_associations(hwnd, &temp, info);835 display_associations(hwnd, &temp, info); 836 836 save_associations(); 837 837 } 838 free(temp.pszCmdLine);838 free(temp.pszCmdLine); 839 839 } 840 840 break; … … 843 843 { 844 844 ASSOC temp; 845 CHAR dummy[34];846 847 memset(&temp, 0, sizeof(ASSOC));848 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);849 if (!temp.pszCmdLine)850 break; //already complained845 CHAR dummy[34]; 846 847 memset(&temp, 0, sizeof(ASSOC)); 848 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__); 849 if (!temp.pszCmdLine) 850 break; //already complained 851 851 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 852 852 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); … … 871 871 } 872 872 save_associations(); 873 }874 free(temp.pszCmdLine);873 } 874 free(temp.pszCmdLine); 875 875 } 876 876 … … 880 880 { 881 881 ASSOC temp; 882 CHAR dummy[34];883 PSZ pszWorkBuf;884 replace = TRUE;885 886 memset(&temp, 0, sizeof(ASSOC));887 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);888 if (!temp.pszCmdLine)889 break; //already complained882 CHAR dummy[34]; 883 PSZ pszWorkBuf; 884 replace = TRUE; 885 886 memset(&temp, 0, sizeof(ASSOC)); 887 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__); 888 if (!temp.pszCmdLine) 889 break; //already complained 890 890 y = (SHORT) WinSendDlgItemMsg(hwnd, 891 891 ASS_LISTBOX, 892 892 LM_QUERYSELECTION, 893 MPFROMSHORT(LIT_CURSOR), MPVOID);894 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__);895 if (!pszWorkBuf) {896 free(temp.pszCmdLine);897 break; //already complained898 }893 MPFROMSHORT(LIT_CURSOR), MPVOID); 894 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 895 if (!pszWorkBuf) { 896 free(temp.pszCmdLine); 897 break; //already complained 898 } 899 899 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 900 WinQueryDlgItemText(hwnd, ASS_CL, MaxComLineStrg, temp.pszCmdLine);901 if (strcmp(temp.pszCmdLine, "<>")) {902 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine);903 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1);904 }905 free(pszWorkBuf);900 WinQueryDlgItemText(hwnd, ASS_CL, MaxComLineStrg, temp.pszCmdLine); 901 if (strcmp(temp.pszCmdLine, "<>")) { 902 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine); 903 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 904 } 905 free(pszWorkBuf); 906 906 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 907 907 rstrip(temp.sig); … … 927 927 temp.flags |= DIEAFTER; 928 928 if (WinQueryButtonCheckstate(hwnd, ASS_PROMPT)) 929 temp.flags |= PROMPT;930 if (fCancelAction){931 fCancelAction = FALSE;932 free(temp.pszCmdLine);933 break;934 }935 else929 temp.flags |= PROMPT; 930 if (fCancelAction){ 931 fCancelAction = FALSE; 932 free(temp.pszCmdLine); 933 break; 934 } 935 else 936 936 info = add_association(&temp); 937 937 if (info) { 938 display_associations(hwnd, &temp, info);938 display_associations(hwnd, &temp, info); 939 939 save_associations(); 940 }941 free(temp.pszCmdLine);940 } 941 free(temp.pszCmdLine); 942 942 } 943 943 { 944 944 ASSOC temp; 945 CHAR dummy[34];946 947 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);948 if (!temp.pszCmdLine)949 break; //already complained945 CHAR dummy[34]; 946 947 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__); 948 if (!temp.pszCmdLine) 949 break; //already complained 950 950 WinSendDlgItemMsg(hwnd, 951 951 ASS_LISTBOX, 952 952 LM_SELECTITEM, MPFROMSHORT(y), MPFROMSHORT(TRUE)); 953 memset(temp.sig, 0, sizeof(temp.sig));954 memset(temp.mask, 0, sizeof(temp.mask));955 temp.offset = 0;953 memset(temp.sig, 0, sizeof(temp.sig)); 954 memset(temp.mask, 0, sizeof(temp.mask)); 955 temp.offset = 0; 956 956 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 957 957 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); … … 975 975 } 976 976 save_associations(); 977 }978 free(temp.pszCmdLine);977 } 978 free(temp.pszCmdLine); 979 979 } 980 980 break; -
trunk/dll/avl.h
r1220 r1321 90 90 MRESULT EXPENTRY SBoxDlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); 91 91 VOID free_arc_type(ARC_TYPE * pat); 92 # ifdef FORTIFY 92 93 VOID free_archivers(VOID); 94 #endif 93 95 94 96 // Data declarations -
trunk/dll/copyf.c
r1222 r1321 352 352 353 353 CHAR srce[CCHMAXPATHCOMP], dest[CCHMAXPATHCOMP], result[CCHMAXPATHCOMP], 354 *p;354 *p; 355 355 356 356 p = strrchr(newname, '\\'); … … 361 361 strcpy(srce, p + 1); 362 362 DosError(FERR_DISABLEHARDERR); 363 if (!DosEditName(1L, srce, dest, result, (ULONG)sizeof(result))) {363 if (!DosEditName(1L, srce, dest, (PBYTE)result, (ULONG)sizeof(result))) { 364 364 p = strrchr(newname, '\\'); 365 365 p++; -
trunk/dll/dirs.c
r1206 r1321 47 47 APIRET save_dir(CHAR * curdir) 48 48 { 49 50 49 APIRET ret; 51 50 ULONG curdirlen, curdrive, drivemap; … … 54 53 ret = DosQCurDisk(&curdrive, &drivemap); 55 54 curdirlen = CCHMAXPATH - 4; /* NOTE!!!!!!!!! */ 56 ret += DosQCurDir(curdrive, &curdir[3], &curdirlen);55 ret += DosQCurDir(curdrive, (PBYTE)&curdir[3], &curdirlen); 57 56 *curdir = (CHAR) ('@' + (INT) curdrive); 58 57 curdir[1] = ':'; -
trunk/dll/dirsize.c
r1222 r1321 1020 1020 if (pState->working) { 1021 1021 pState->dying = TRUE; 1022 pState->chStopFlag = ( BYTE)0xff;1022 pState->chStopFlag = (CHAR)0xff; 1023 1023 DosBeep(1000, 100); // Complain? 1024 1024 } … … 1033 1033 pState = INSTDATA(hwnd); 1034 1034 if (pState) 1035 pState->chStopFlag = ( BYTE)0xff;1035 pState->chStopFlag = (CHAR)0xff; 1036 1036 DosSleep(1); 1037 1037 break; … … 1041 1041 EmptyCnr(hwnd); 1042 1042 if (pState) { 1043 pState->chStopFlag = ( BYTE)0xff;1043 pState->chStopFlag = (CHAR)0xff; 1044 1044 if (pState->hptr) 1045 1045 WinDestroyPointer(pState->hptr); -
trunk/dll/fm3res.rc
r1289 r1321 724 724 "{", IDM_APPENDTOCLIPFILENAME, SHIFT,ALT 725 725 "[", IDM_SAVETOCLIP, CONTROL 726 "[", IDM_SAVETOCLIPFILENAME ALT726 "[", IDM_SAVETOCLIPFILENAME, ALT 727 727 VK_F1, IDM_HELP, VIRTUALKEY 728 728 VK_F3, SC_CLOSE, SYSCOMMAND,VIRTUALKEY -
trunk/dll/inis.c
r1224 r1321 207 207 208 208 PVOID pDataK, pData; 209 P BYTEpCurrentK;209 PSZ pCurrentK; 210 210 ULONG ulSize = 0L; 211 211 … … 213 213 if (!*inirec->key) { 214 214 if (inirec->confirm && 215 PrfQueryProfileSize(hiniFrom, (PSZ) ((*inirec->app2) ? 216 inirec->app2 : inirec-> 217 app), NULL, 218 (PULONG) & ulSize) && ulSize) { 215 PrfQueryProfileSize(hiniFrom, 216 (PSZ)((*inirec->app2) ? 217 inirec->app2 : inirec-> app), 218 NULL, 219 &ulSize) 220 && ulSize) { 219 221 if (saymsg 220 222 (MB_YESNOCANCEL, HWND_DESKTOP, … … 239 241 if (PrfQueryProfileSize(hiniTo, inirec->app, 240 242 pCurrentK, 241 (PULONG) &ulSize) && ulSize) {243 (PULONG)&ulSize) && ulSize) { 242 244 pData = xmalloc(ulSize, pszSrcFile, __LINE__); 243 245 if (pData) { … … 370 372 HINI new; 371 373 PVOID pDataA, pDataK, pData; 372 P BYTEpCurrentA, pCurrentK;374 PSZ pCurrentA, pCurrentK; 373 375 ULONG ulSize; 374 376 PRFPROFILE cprfp; -
trunk/dll/mainwnd.c
r1318 r1321 2930 2930 if (!pszStateName || !*pszStateName) { 2931 2931 Runtime_Error(pszSrcFile, __LINE__, "no data"); 2932 return -1;2932 return -1; 2933 2933 } 2934 2934 if (strlen(pszStateName) > sizeof(szPrefix) - 2) { … … 6543 6543 6544 6544 case WM_DESTROY: 6545 # ifdef FORTIFY 6546 DbgMsg(pszSrcFile, __LINE__, "WM_DESTROY hwnd %p TID %u", hwnd, GetTidForThread()); // 22 Jul 08 SHL fixme 6547 # endif 6545 6548 hwndMain = (HWND) 0; 6546 6549 if (!PostMsg((HWND) 0, WM_QUIT, MPVOID, MPVOID)) -
trunk/dll/srchpath.c
r1241 r1321 48 48 rc = DosSearchPath(SEARCH_IGNORENETERRS |SEARCH_ENVIRONMENT | 49 49 SEARCH_CUR_DIRECTORY,"PATH", 50 appname, fbuf, CCHMAXPATH - 1);50 appname, (PBYTE)fbuf, CCHMAXPATH - 1); 51 51 if (rc != 0) { 52 52 if (rc != 2){ … … 57 57 else { 58 58 rc = DosSearchPath(0, "UTILS;..\\FM2Utils", 59 appname, fbuf, CCHMAXPATH - 1);59 appname, (PBYTE)fbuf, CCHMAXPATH - 1); 60 60 if (rc != 0 && rc != 2){ 61 61 Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__, … … 121 121 if (DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT | 122 122 SEARCH_CUR_DIRECTORY, 123 pathvar, filename, fbuf, CCHMAXPATH - 1))123 pathvar, filename, (PBYTE)fbuf, CCHMAXPATH - 1)) 124 124 *fbuf = 0; 125 125 return fbuf; -
trunk/dll/systemf.c
r1274 r1321 1102 1102 sdata.PgmName = pszPgm; 1103 1103 if (*pszArgs) 1104 sdata.PgmInputs = pszArgs;1104 sdata.PgmInputs = (PBYTE)pszArgs; 1105 1105 if (useTermQ) 1106 sdata.TermQ = szTermQName;1107 sdata.Environment = pszEnvironment;1106 sdata.TermQ = (PBYTE)szTermQName; 1107 sdata.Environment = (PBYTE)pszEnvironment; 1108 1108 sdata.InheritOpt = SSF_INHERTOPT_PARENT; 1109 1109 sdata.SessionType = ulAppType; -
trunk/dll/walkem.c
r1228 r1321 1117 1117 APIRET rc; 1118 1118 1119 rc = DosQCurDir(toupper(*szBuffer) - '@', &szBuff[3], &ulDirLen);1119 rc = DosQCurDir(toupper(*szBuffer) - '@', (PBYTE)&szBuff[3], &ulDirLen); 1120 1120 if (!rc) { 1121 1121 strcpy(wa->szCurrentPath, "C:\\"); … … 1515 1515 APIRET rc; 1516 1516 1517 rc = DosQCurDir(toupper(*szBuffer) - '@', &szBuff[3], &ulDirLen);1517 rc = DosQCurDir(toupper(*szBuffer) - '@', (PBYTE)&szBuff[3], &ulDirLen); 1518 1518 if (!rc) { 1519 1519 strcpy(wa->szCurrentPath1, "C:\\"); … … 1580 1580 APIRET rc; 1581 1581 1582 rc = DosQCurDir(toupper(*szBuffer) - '@', &szBuff[3], &ulDirLen);1582 rc = DosQCurDir(toupper(*szBuffer) - '@', (PBYTE)&szBuff[3], &ulDirLen); 1583 1583 if (!rc) { 1584 1584 strcpy(wa->szCurrentPath2, "C:\\"); -
trunk/dll/walkem.h
r1228 r1321 64 64 65 65 #ifdef FORTIFY 66 VOID free_ldir(VOID); 66 67 VOID free_setups(VOID); 67 68 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
