Changeset 10076 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- May 6, 2003, 3:50:37 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r10061 r10076 1 /* $Id: win32wbase.cpp,v 1.37 1 2003-05-02 17:18:57 sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.372 2003-05-06 13:50:37 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 4111 4111 } 4112 4112 4113 lock(&critsect); 4113 4114 int j = 0; 4114 4115 for(int i=0;i<MAX_OPENDCS && j<nrOpenDCs;i++) { … … 4118 4119 } 4119 4120 } 4121 unlock(&critsect); 4120 4122 *pnrdcs = nrOpenDCs; 4121 4123 return TRUE; … … 4134 4136 void Win32BaseWindow::addOpenDC(HDC hdc) 4135 4137 { 4138 lock(&critsect); 4136 4139 for(int i=0;i<MAX_OPENDCS;i++) { 4137 4140 if(hdcWindow[i] == 0) { … … 4140 4143 } 4141 4144 } 4145 unlock(&critsect); 4142 4146 if(i == MAX_OPENDCS) { 4143 4147 DebugInt3(); //no room! … … 4145 4149 } 4146 4150 4151 dprintf2(("Win32BaseWindow::addOpenDC %x %x %d", getWindowHandle(), hdc, nrOpenDCs+1)); 4147 4152 nrOpenDCs++; 4148 4153 } … … 4161 4166 { 4162 4167 if(nrOpenDCs == 0) { 4168 dprintf(("Win32BaseWindow::removeOpenDC %x hdc %x not found!! (1)", getWindowHandle(), hdc)); 4163 4169 DebugInt3(); 4164 4170 return; 4165 4171 } 4172 lock(&critsect); 4166 4173 for(int i=0;i<MAX_OPENDCS;i++) { 4167 4174 if(hdcWindow[i] == hdc) { … … 4170 4177 } 4171 4178 } 4179 unlock(&critsect); 4172 4180 if(i == MAX_OPENDCS) { 4181 dprintf(("Win32BaseWindow::removeOpenDC hdc %x not found!!", hdc)); 4173 4182 DebugInt3(); //not found 4174 4183 return; 4175 4184 } 4185 dprintf2(("Win32BaseWindow::removeOpenDC %x %x", getWindowHandle(), hdc, nrOpenDCs-1)); 4176 4186 nrOpenDCs--; 4177 4187 }
Note:
See TracChangeset
for help on using the changeset viewer.