Changeset 331


Ignore:
Timestamp:
Jul 25, 2006, 8:46:38 PM (19 years ago)
Author:
root
Message:

Check more run time errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/dll/winlist.c

    r130 r331  
    77
    88  Copyright (c) 1993-97 M. Kimes
    9   Copyright (c) 2005 Steven H.Levine
     9  Copyright (c) 2005, 2006 Steven H.Levine
    1010
    1111  23 May 05 SHL Use QWL_USER
     12  22 Jul 06 SHL Check more run time errors
    1213
    1314***********************************************************************/
     
    1516#define INCL_DOS
    1617#define INCL_WIN
    17 
    1818#include <os2.h>
     19
    1920#include <stdarg.h>
    2021#include <stdio.h>
     
    2223#include <string.h>
    2324#include <ctype.h>
     25
    2426#include "fm3dll.h"
    2527#include "fm3dlg.h"
    2628
    2729#pragma data_seg(DATA1)
     30
     31static PSZ pszSrcFile = __FILE__;
     32
    2833#pragma alloc_text(WINLIST,WindowList,WinListDlgProc)
    2934
    3035MRESULT EXPENTRY WinListDlgProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2)
    3136{
     37  SHORT       sSelect;
     38
    3239  static HWND Me = (HWND)0;
    33   SHORT       sSelect;
    3440
    3541  switch(msg) {
    3642    case WM_INITDLG:
    37       if(Me || !mp2) {
    38         if(Me)
     43      if (Me || !mp2) {
     44        if (Me)
    3945          PostMsg(Me,UM_FOCUSME,MPVOID,MPVOID);
    4046        WinDismissDlg(hwnd,0);
     
    7783                   (LONG)sizeof(SWENTRY);
    7884          /* Allocate memory for list */
    79           if((pswb = malloc((unsigned)ulSize)) != NULL) {
     85          pswb = xmalloc((unsigned)ulSize,pszSrcFile,__LINE__);
     86          if (pswb) {
    8087            /* Put the info in the list */
    8188            ulcEntries = WinQuerySwitchList(0,pswb,
Note: See TracChangeset for help on using the changeset viewer.