Changeset 2853
- Timestamp:
- Feb 21, 2000, 9:26:45 PM (26 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
bin/ODIN.INI (modified) (1 diff)
-
src/gdi32/dibsect.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/ODIN.INI
r2690 r2853 1 [DIRECTORIES]2 SYSTEM=C:\OS2\SYSTEM3 WINDOWS=C:\OS24 5 1 [DLLRENAMEWIN] 6 2 OLE32=OLE32OS2 -
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.
