Changeset 8620 for trunk/src/ole32/memlockbytes.c
- Timestamp:
- Jun 9, 2002, 6:37:22 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ole32/memlockbytes.c
r8441 r8620 43 43 { 44 44 /* 45 * Needs to be the first item in the stuct 45 * Needs to be the first item in the stuct 46 46 * since we want to cast this in an ILockBytes pointer 47 47 */ … … 206 206 HGLOBALLockBytesImpl* newLockBytes; 207 207 newLockBytes = HeapAlloc(GetProcessHeap(), 0, sizeof(HGLOBALLockBytesImpl)); 208 208 209 209 if (newLockBytes!=0) 210 210 { … … 214 214 ICOM_VTBL(newLockBytes) = &HGLOBALLockBytesImpl_Vtbl; 215 215 newLockBytes->ref = 0; 216 216 217 217 /* 218 218 * Initialize the support. … … 312 312 HGLOBALLockBytesImpl_AddRef(iface); 313 313 314 return S_OK; ;314 return S_OK; 315 315 } 316 316 … … 416 416 * The function returns S_OK if the specified number of bytes were read 417 417 * or the end of the array was reached. 418 * It returns STG_E_READFAULT if the number of bytes to read does not equal 418 * It returns STG_E_READFAULT if the number of bytes to read does not equal 419 419 * the number of bytes actually read. 420 420 */ … … 521 521 if (libNewSize.s.HighPart != 0) 522 522 return STG_E_INVALIDFUNCTION; 523 523 524 524 if (This->byteArraySize.s.LowPart == libNewSize.s.LowPart) 525 525 return S_OK; … … 536 536 537 537 This->byteArraySize.s.LowPart = libNewSize.s.LowPart; 538 538 539 539 return S_OK; 540 540 }
Note:
See TracChangeset
for help on using the changeset viewer.