Changeset 348 for trunk/dll/common.c


Ignore:
Timestamp:
Jul 26, 2006, 7:15:57 PM (19 years ago)
Author:
root
Message:

Check more run time errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/common.c

    r246 r348  
    77
    88  Copyright (c) 1993, 1998 M. Kimes
    9   Copyright (c) 2001, 2005 Steven H. Levine
     9  Copyright (c) 2001, 2006 Steven H. Levine
    1010
    1111  13 Aug 05 SHL Renames
     12  22 Jul 06 SHL Check more run time errors
    1213
    1314***********************************************************************/
     
    1718#define INCL_WIN
    1819#define INCL_GPI
    19 
    2020#include <os2.h>
     21
    2122#include <stdarg.h>
    2223#include <stdio.h>
     
    2829#include <share.h>
    2930#include <limits.h>
     31
    3032#include "fm3dll.h"
    3133#include "fm3dlg.h"
     
    3436
    3537#pragma data_seg(DATA1)
     38
     39static PSZ pszSrcFile = __FILE__;
     40
    3641#pragma alloc_text(COMMON,CommonFrameWndProc,CommonTextProc,CommonTextPaint)
    3742#pragma alloc_text(COMMON1,CommonCreateTextChildren,CommonCreateMainChildren)
     
    663668                                                        return 0;
    664669                                                strcpy(lastfile,(CHAR *)mp1);
    665                                                 s = strdup(lastfile);
     670                                                s = xstrdup(lastfile,pszSrcFile,__LINE__);
    666671                                        }
    667672                                        else
     
    700705      }
    701706      break;
    702      
     707
    703708    case WM_BUTTON1DOWN:
    704709    case WM_BUTTON3DOWN:
Note: See TracChangeset for help on using the changeset viewer.