Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/collect.c
r1439 r1442 68 68 12 Jul 09 GKY Add szFSType to FillInRecordFromFSA use to bypass EA scan and size formatting 69 69 for tree container 70 13 Jul 09 GKY Fixed double free of memory buffer in UM_COLLECTFROMFILE 70 71 71 72 ***********************************************************************/ … … 870 871 fclose(fp); 871 872 } 872 }873 xfree(mp1, pszSrcFile, __LINE__);873 free(mp1); 874 } 874 875 # ifdef FORTIFY 875 876 Fortify_LeaveScope(); … … 1580 1581 Fortify_BecomeOwner(mp1); 1581 1582 # endif 1582 if (!dcd) 1583 Runtime_Error(pszSrcFile, __LINE__, NULL); 1583 if (!dcd) { 1584 Runtime_Error(pszSrcFile, __LINE__, NULL); 1585 free(mp1); 1586 } 1584 1587 else { 1585 1588 if (!PostMsg(dcd->hwndObject, UM_COLLECTFROMFILE, mp1, mp2)) { 1586 Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG);1587 } 1588 }1589 free(mp1);1589 Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG); 1590 free(mp1); 1591 } 1592 } 1590 1593 # ifdef FORTIFY 1591 1594 DosSleep(1); // Let receiver take ownership -
trunk/dll/excputil.c
r1332 r1442 30 30 31 31 #include "excputil.h" 32 #include "fortify.h" 32 33 33 34 static PSZ pszSrcFile = __FILE__; -
trunk/dll/fortify.c
r1438 r1442 1571 1571 } 1572 1572 1573 sprintf(st_Buffer, "%02x%s", *ptr, ((column % 4) == 3) ? " " : NullStr);1573 sprintf(st_Buffer, "%02x%s", *ptr, ((column % 4) == 3) ? " " : ""); 1574 1574 st_Output(st_Buffer); 1575 1575 -
trunk/dll/mainwnd.c
r1439 r1442 91 91 12 Jul 09 GKY Removed duplicate UM_SETUP2 message from RestoreDirCnrState caused dbl dir 92 92 listings in tree 93 13 Jul 09 GKY Fixed under allocation of memory in the paint code for the drivebar bitmap buttons 93 94 94 95 ***********************************************************************/ … … 1929 1930 hbm = GpiLoadBitmap(hps, 0, iconid, 0, 0); 1930 1931 if (hbm) { 1931 pbmpData = xmallocz(sizeof(PBITMAPINFOHEADER) , pszSrcFile, __LINE__);1932 pbmpData = xmallocz(sizeof(PBITMAPINFOHEADER) * 3, pszSrcFile, __LINE__); 1932 1933 if (pbmpData) { 1933 1934 GpiQueryBitmapParameters(hbm, pbmpData); … … 1936 1937 aptl[3].x = pbmpData->cx; 1937 1938 aptl[3].y = pbmpData->cy; 1939 GpiWCBitBlt(hps, hbm, 4L, aptl, ROP_SRCCOPY, BBO_PAL_COLORS); 1938 1940 free(pbmpData); 1939 1941 } 1940 GpiWCBitBlt(hps, hbm, 4L, aptl, ROP_SRCCOPY, BBO_PAL_COLORS);1941 1942 } 1942 1943 memset(&fat, 0, sizeof(fat));
Note:
See TracChangeset
for help on using the changeset viewer.
