Changeset 655 for trunk/src/user32/new/win32class.cpp
- Timestamp:
- Aug 24, 1999, 11:20:30 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32class.cpp
r606 r655 1 /* $Id: win32class.cpp,v 1. 6 1999-08-21 12:53:28sandervl Exp $ */1 /* $Id: win32class.cpp,v 1.7 1999-08-24 09:20:30 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 120 120 Win32WndClass *Win32WndClass::FindClass(HINSTANCE hInstance, LPSTR id) 121 121 { 122 enterMutex(OBJTYPE_CLASS); 123 122 124 Win32WndClass *wndclass = (Win32WndClass *)wndclasses; 123 125 124 if(wndclass == NULL) return(NULL); 126 if(wndclass == NULL) { 127 leaveMutex(OBJTYPE_CLASS); 128 return(NULL); 129 } 125 130 126 131 if(HIWORD(id) != 0) { 127 132 //CB: read comment below! 128 133 if(stricmp(wndclass->classNameA, id) == 0 && wndclass->hInstance == hInstance) { 134 leaveMutex(OBJTYPE_CLASS); 129 135 return(wndclass); 130 136 } … … 133 139 while(wndclass != NULL) { 134 140 if(stricmp(wndclass->classNameA, id) == 0 && wndclass->hInstance == hInstance) { 141 leaveMutex(OBJTYPE_CLASS); 135 142 return(wndclass); 136 143 } … … 143 150 //CB: need more code to compare instance; convert 0 to exe module handle 144 151 if(wndclass->classAtom == (DWORD)id /*&& wndclass->hInstance == hInstance*/) { 152 leaveMutex(OBJTYPE_CLASS); 145 153 return(wndclass); 146 154 } … … 149 157 while(wndclass != NULL) { 150 158 if(wndclass->classAtom == (DWORD)id/* && wndclass->hInstance == hInstance*/) { 151 return(wndclass); 159 leaveMutex(OBJTYPE_CLASS); 160 return(wndclass); 152 161 } 153 162 wndclass = (Win32WndClass *)wndclass->GetNext(); … … 155 164 } 156 165 } 166 leaveMutex(OBJTYPE_CLASS); 157 167 dprintf(("Class %X (inst %X) not found!", id, hInstance)); 158 168 return(NULL);
Note:
See TracChangeset
for help on using the changeset viewer.