Changeset 21916 for trunk/src/ole32/memlockbytes.c
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/ole32/memlockbytes.c
r8620 r21916 234 234 * Initialize the size of the array to the size of the handle. 235 235 */ 236 newLockBytes->byteArraySize. s.HighPart = 0;237 newLockBytes->byteArraySize. s.LowPart = GlobalSize(236 newLockBytes->byteArraySize.DUMMYSTRUCTNAME_DOT HighPart = 0; 237 newLockBytes->byteArraySize.DUMMYSTRUCTNAME_DOT LowPart = GlobalSize( 238 238 newLockBytes->supportHandle); 239 239 } … … 384 384 * Make sure the offset is valid. 385 385 */ 386 if (ulOffset. s.LowPart > This->byteArraySize.s.LowPart)386 if (ulOffset.DUMMYSTRUCTNAME_DOT LowPart > This->byteArraySize.DUMMYSTRUCTNAME_DOT LowPart) 387 387 return E_FAIL; 388 388 … … 391 391 * to read. 392 392 */ 393 bytesToReadFromBuffer = min(This->byteArraySize. s.LowPart -394 ulOffset. s.LowPart, cb);393 bytesToReadFromBuffer = min(This->byteArraySize.DUMMYSTRUCTNAME_DOT LowPart - 394 ulOffset.DUMMYSTRUCTNAME_DOT LowPart, cb); 395 395 396 396 /* … … 400 400 401 401 memcpy(pv, 402 (char *) supportBuffer + ulOffset. s.LowPart,402 (char *) supportBuffer + ulOffset.DUMMYSTRUCTNAME_DOT LowPart, 403 403 bytesToReadFromBuffer); 404 404 … … 459 459 else 460 460 { 461 newSize. s.HighPart = 0;462 newSize. s.LowPart = ulOffset.s.LowPart + cb;461 newSize.DUMMYSTRUCTNAME_DOT HighPart = 0; 462 newSize.DUMMYSTRUCTNAME_DOT LowPart = ulOffset.DUMMYSTRUCTNAME_DOT LowPart + cb; 463 463 } 464 464 … … 466 466 * Verify if we need to grow the stream 467 467 */ 468 if (newSize. s.LowPart > This->byteArraySize.s.LowPart)468 if (newSize.DUMMYSTRUCTNAME_DOT LowPart > This->byteArraySize.DUMMYSTRUCTNAME_DOT LowPart) 469 469 { 470 470 /* grow stream */ … … 478 478 supportBuffer = GlobalLock(This->supportHandle); 479 479 480 memcpy((char *) supportBuffer + ulOffset. s.LowPart, pv, cb);480 memcpy((char *) supportBuffer + ulOffset.DUMMYSTRUCTNAME_DOT LowPart, pv, cb); 481 481 482 482 /* … … 519 519 * As documented. 520 520 */ 521 if (libNewSize. s.HighPart != 0)521 if (libNewSize.DUMMYSTRUCTNAME_DOT HighPart != 0) 522 522 return STG_E_INVALIDFUNCTION; 523 523 524 if (This->byteArraySize. s.LowPart == libNewSize.s.LowPart)524 if (This->byteArraySize.DUMMYSTRUCTNAME_DOT LowPart == libNewSize.DUMMYSTRUCTNAME_DOT LowPart) 525 525 return S_OK; 526 526 … … 529 529 */ 530 530 This->supportHandle = GlobalReAlloc(This->supportHandle, 531 libNewSize. s.LowPart,531 libNewSize.DUMMYSTRUCTNAME_DOT LowPart, 532 532 0); 533 533 … … 535 535 return STG_E_MEDIUMFULL; 536 536 537 This->byteArraySize. s.LowPart = libNewSize.s.LowPart;537 This->byteArraySize.DUMMYSTRUCTNAME_DOT LowPart = libNewSize.DUMMYSTRUCTNAME_DOT LowPart; 538 538 539 539 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.