Ignore:
Timestamp:
Aug 16, 1999, 2:40:48 AM (26 years ago)
Author:
hugh
Message:

Changed to use ODINCRT macros to preserve FS, but still does crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/OS2PALETTE.CPP

    r210 r503  
    1010#include "os2palset.h"
    1111#include <winerror.h>
     12#include <odincrt.h>
    1213
    1314//******************************************************************************
     
    9697    if(me->Referenced == 0)
    9798    {
    98       delete me;
     99      ODIN_delete(me);
    99100      return(0);
    100101    }
     
    141142    return(DDERR_INVALIDPARAMS);
    142143
     144  ODIN_FS_BEGIN
     145
    143146  memcpy( (char *)lpEntries,
    144147          (char *)(me->os2pal + dwBase),
    145148          dwNumEntries*sizeof(PALETTEENTRY));
     149
     150  ODIN_FS_END
     151
    146152  return(DD_OK);
    147153}
     
    169175  if( (NULL== lpNewEntries) ||(0!=dwFlags) ||(dwBase<0) ||((dwBase + dwNumEntries)>me->dwSize) )
    170176    return(DDERR_INVALIDPARAMS);
     177
     178  ODIN_FS_BEGIN
     179
    171180  memcpy((char *)(me->os2pal + dwBase),
    172181         (char *)lpNewEntries,
    173182         dwNumEntries*sizeof(PALETTEENTRY));
     183
     184  ODIN_FS_END
    174185
    175186  if(me->fAttachedToPrimary)
Note: See TracChangeset for help on using the changeset viewer.