Changeset 1394
- Timestamp:
- Oct 21, 1999, 9:23:51 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/user32/win32class.cpp ¶
r949 r1394 1 /* $Id: win32class.cpp,v 1. 1 1999-09-15 23:19:00sandervl Exp $ */1 /* $Id: win32class.cpp,v 1.2 1999-10-21 19:23:51 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 121 121 { 122 122 if(HIWORD(classname) == 0) { 123 123 return classAtom == (DWORD)classname; 124 124 } 125 125 if(fUnicode) { 126 127 } 128 else 126 return (lstrcmpW(classNameW, (LPWSTR)classname) == 0); 127 } 128 else return (strcmp(classNameA, classname) == 0); 129 129 } 130 130 //****************************************************************************** … … 150 150 wndclass = (Win32WndClass *)wndclass->GetNext(); 151 151 while(wndclass != NULL) { 152 if(stricmp(wndclass->classNameA, id) == 0 && wndclass->hInstance == hInstance) { 153 leaveMutex(OBJTYPE_CLASS); 154 return(wndclass); 152 if(stricmp(wndclass->classNameA, id) == 0) 153 { 154 //SvL: According to Wine, if the instance handle is the one of the main exe, everything is ok 155 if(hInstance == NULL || GetModuleHandleA(NULL) == hInstance || 156 wndclass->hInstance == hInstance) 157 { 158 leaveMutex(OBJTYPE_CLASS); 159 return(wndclass); 160 } 155 161 } 156 162 wndclass = (Win32WndClass *)wndclass->GetNext();
Note:
See TracChangeset
for help on using the changeset viewer.