- Timestamp:
- Feb 21, 2000, 9:26:45 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibsect.cpp
r2845 r2853 1 /* $Id: dibsect.cpp,v 1. 19 2000-02-21 10:34:46sandervl Exp $ */1 /* $Id: dibsect.cpp,v 1.20 2000-02-21 20:26:45 sandervl Exp $ */ 2 2 3 3 /* … … 246 246 { 247 247 char *oldbits = bmpBits; 248 int oldsize = dibinfo.dsBm.bmWidthBytes * dibinfo.dsBm.bmHeight; 248 249 249 250 DosAllocMem((PPVOID)&bmpBits, bmpsize*pbmi->biHeight, PAG_READ|PAG_WRITE|PAG_COMMIT); 250 memcpy(bmpBits, oldbits, bmpsize*pbmi->biHeight);251 memcpy(bmpBits, oldbits, min(oldsize, bmpsize*pbmi->biHeight)); 251 252 DosFreeMem(oldbits); 252 253 }
Note:
See TracChangeset
for help on using the changeset viewer.