Changeset 1606 for trunk/src/user32/win32class.cpp
- Timestamp:
- Nov 5, 1999, 10:17:27 AM (26 years ago)
- 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 $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 158 158 } 159 159 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 } 163 169 } 164 170 //****************************************************************************** … … 177 183 if(HIWORD(id) != 0) { 178 184 //CB: read comment below! 179 if( stricmp(wndclass->classNameA, id) == 0 && wndclass->hInstance == hInstance) {185 if(lstrcmpiA(wndclass->classNameA, id) == 0 && wndclass->hInstance == hInstance) { 180 186 leaveMutex(OBJTYPE_CLASS); 181 187 return(wndclass); … … 184 190 wndclass = (Win32WndClass *)wndclass->GetNext(); 185 191 while(wndclass != NULL) { 186 if( stricmp(wndclass->classNameA, id) == 0)192 if(lstrcmpiA(wndclass->classNameA, id) == 0) 187 193 { 188 194 //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.