Ignore:
Timestamp:
Nov 5, 1999, 10:17:27 AM (26 years ago)
Author:
sandervl
Message:

EBs fixes

File:
1 edited

Legend:

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

    r1540 r1606  
    1 /* $Id: win32class.cpp,v 1.5 1999-11-01 19:11:42 sandervl Exp $ */
     1/* $Id: win32class.cpp,v 1.6 1999-11-05 09:16:22 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Managment Code for OS/2
     
    158158  }
    159159  if(fUnicode) {
    160     return (lstrcmpW(classNameW, (LPWSTR)classname) == 0);
    161   }
    162   else  return (strcmp(classNameA, classname) == 0);
     160        if(classNameW)
     161                return (lstrcmpW(classNameW, (LPWSTR)classname) == 0);
     162        return FALSE;
     163  }
     164  else {
     165        if(classNameA)
     166                return (strcmp(classNameA, classname) == 0);
     167        return FALSE;
     168  }
    163169}
    164170//******************************************************************************
     
    177183  if(HIWORD(id) != 0) {
    178184//CB: read comment below!
    179         if(stricmp(wndclass->classNameA, id) == 0 && wndclass->hInstance == hInstance) {
     185        if(lstrcmpiA(wndclass->classNameA, id) == 0 && wndclass->hInstance == hInstance) {
    180186                leaveMutex(OBJTYPE_CLASS);
    181187                return(wndclass);
     
    184190                wndclass = (Win32WndClass *)wndclass->GetNext();
    185191                while(wndclass != NULL) {
    186                         if(stricmp(wndclass->classNameA, id) == 0)
     192                        if(lstrcmpiA(wndclass->classNameA, id) == 0)
    187193                        {
    188194                                //SvL: According to Wine, if the instance handle is the one of the main exe, everything is ok
Note: See TracChangeset for help on using the changeset viewer.