Changeset 377 for trunk/dll/objwin.c


Ignore:
Timestamp:
Jul 27, 2006, 8:28:31 AM (19 years ago)
Author:
root
Message:

Validate WinCreateWindow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/objwin.c

    r2 r377  
     1
     2/***********************************************************************
     3
     4  $Id$
     5
     6  Object windows
     7
     8  Copyright (c) 1993-98 M. Kimes
     9  Copyright (c) 2006 Steven H.Levine
     10
     11  26 Jul 06 SHL Check more run time errors
     12
     13***********************************************************************/
     14
    115#define INCL_DOS
    216#define INCL_WIN
    317#define INCL_GPI
     18#include <os2.h>
    419
    5 #include <os2.h>
    620#include <stdarg.h>
    721#include <stdio.h>
     
    1024#include <ctype.h>
    1125#include <stddef.h>
     26
    1227#include "fm3dll.h"
    1328#include "fm3dlg.h"
    1429#include "fm3str.h"
    1530
     31static PSZ pszSrcFile = __FILE__;
     32
    1633#pragma alloc_text(OBJWIN,ObjectWndProc,MakeObjWin)
    17 
    1834
    1935MRESULT EXPENTRY ObjectWndProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) {
     
    6884                                   NULL,
    6985                                   NULL);
    70       if(ObjectHwnd) {
     86      if (!ObjectHwnd)
     87        Win_Error2(HWND_OBJECT,HWND_DESKTOP,pszSrcFile,__LINE__,IDS_WINCREATEWINDOW);
     88      else {
    7189        WinSetWindowPtr(ObjectHwnd,0,args);
    7290        /* initially populate container */
Note: See TracChangeset for help on using the changeset viewer.