Changeset 1442 for trunk/dll/mainwnd.c
- Timestamp:
- Jul 14, 2009, 2:16:38 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/dll/mainwnd.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
