Ignore:
Timestamp:
Jul 13, 2001, 4:31:39 PM (24 years ago)
Author:
sandervl
Message:

remove wrong check for negative x & y coordinates during window creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/windowclass.cpp

    r5935 r6317  
    1 /* $Id: windowclass.cpp,v 1.21 2001-06-09 14:50:26 sandervl Exp $ */
     1/* $Id: windowclass.cpp,v 1.22 2001-07-13 14:31:39 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Code for OS/2
     
    6868    int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
    6969
    70     wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
    71                            LR_COPYFROMRESOURCE);
     70    if(wc.hIcon)
     71        wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
     72                               LR_COPYFROMRESOURCE);
    7273
    7374    wclass = new Win32WndClass(&wc,FALSE);
     
    138139    int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
    139140
    140     wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
    141                            LR_COPYFROMRESOURCE);
     141    if(wc.hIcon)
     142        wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
     143                               LR_COPYFROMRESOURCE);
    142144
    143145    dprintf(("RegisterClassW"));
Note: See TracChangeset for help on using the changeset viewer.