Changeset 2853


Ignore:
Timestamp:
Feb 21, 2000, 9:26:45 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/ODIN.INI

    r2690 r2853  
    1 [DIRECTORIES]
    2 SYSTEM=C:\OS2\SYSTEM
    3 WINDOWS=C:\OS2
    4 
    51[DLLRENAMEWIN]
    62OLE32=OLE32OS2
  • trunk/src/gdi32/dibsect.cpp

    r2845 r2853  
    1 /* $Id: dibsect.cpp,v 1.19 2000-02-21 10:34:46 sandervl Exp $ */
     1/* $Id: dibsect.cpp,v 1.20 2000-02-21 20:26:45 sandervl Exp $ */
    22
    33/*
     
    246246   {
    247247        char *oldbits = bmpBits;
     248        int oldsize = dibinfo.dsBm.bmWidthBytes * dibinfo.dsBm.bmHeight;
    248249
    249250        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));
    251252        DosFreeMem(oldbits);
    252253   }
Note: See TracChangeset for help on using the changeset viewer.