Changeset 377 for trunk/dll/autoview.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/autoview.c

    r341 r377  
    654654                                    NULL,
    655655                                    NULL);
    656       if(hwndAutoObj) {
     656      if (!hwndAutoObj) {
     657        Win_Error2(HWND_OBJECT,HWND_DESKTOP,pszSrcFile,__LINE__,IDS_WINCREATEWINDOW);
     658        if(!PostMsg(hwndParent,UM_CLOSE,MPVOID,MPVOID))
     659          WinSendMsg(hwndParent,UM_CLOSE,MPVOID,MPVOID);
     660      }
     661      else {
    657662        WinSetWindowULong(hwndAutoObj,QWL_USER,hwndParent);
    658663        priority_normal();
     
    661666        WinDestroyWindow(hwndAutoObj);
    662667        hwndAutoObj = (HWND)0;
    663       }
    664       else {
    665         if(!PostMsg(hwndParent,UM_CLOSE,MPVOID,MPVOID))
    666           WinSendMsg(hwndParent,UM_CLOSE,MPVOID,MPVOID);
    667668      }
    668669      WinDestroyMsgQueue(hmq2);
Note: See TracChangeset for help on using the changeset viewer.