- Timestamp:
- Jun 28, 2000, 8:11:19 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r3679 r3766 1 /* $Id: window.cpp,v 1.7 0 2000-06-08 18:10:12sandervl Exp $ */1 /* $Id: window.cpp,v 1.71 2000-06-28 18:11:19 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 1178 1178 } 1179 1179 //****************************************************************************** 1180 //Note: count 0 is a legal parameter (verified in NT4) 1180 1181 //****************************************************************************** 1181 1182 HDWP WIN32API BeginDeferWindowPos(int count) … … 1184 1185 DWP *pDWP; 1185 1186 1186 if (count < =0)1187 if (count < 0) 1187 1188 { 1188 1189 dprintf(("USER32: BeginDeferWindowPos invalid param %d", count)); … … 1191 1192 } 1192 1193 dprintf(("USER32: BeginDeferWindowPos %d", count)); 1193 handle = (HDWP)HeapAlloc(GetProcessHeap(), 0, sizeof(DWP) + (count-1)*sizeof(WINDOWPOS) ); 1194 if(count == 0) 1195 count = 8; // change to any non-zero value 1196 1197 handle = (HDWP)HeapAlloc(GetProcessHeap(), 0, sizeof(DWP) + (count-1)*sizeof(WINDOWPOS)); 1194 1198 if (!handle) 1195 1199 return 0; … … 1205 1209 /*********************************************************************** 1206 1210 * DeferWindowPos (USER32.128) 1211 * 1212 * TODO: SvL: Does this need to be thread safe? 1213 * 1207 1214 */ 1208 1215 HDWP WIN32API DeferWindowPos( HDWP hdwp, HWND hwnd, HWND hwndAfter, … … 1282 1289 if (pDWP->actualCount >= pDWP->suggestedCount) 1283 1290 { 1291 //DWP structure already contains WINDOWPOS, allocated with (count-1) 1292 //in BeginDeferWindowPos; pDWP->suggestedCount alloc increases it by one 1284 1293 newhdwp = (HDWP)HeapReAlloc(GetProcessHeap(), 0, (LPVOID)hdwp, 1285 1294 sizeof(DWP) + pDWP->suggestedCount*sizeof(WINDOWPOS));
Note:
See TracChangeset
for help on using the changeset viewer.