Changeset 6648 for trunk/src/ole32/memlockbytes.c
- Timestamp:
- Sep 5, 2001, 3:19:02 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ole32/memlockbytes.c
r5602 r6648 1 /* $Id: memlockbytes.c,v 1.2 2001-09-05 13:17:10 bird Exp $ */ 1 2 /****************************************************************************** 2 3 * … … 25 26 { 26 27 /* 27 * Needs to be the first item in the stuct 28 * Needs to be the first item in the stuct 28 29 * since we want to cast this in an ILockBytes pointer 29 30 */ … … 188 189 HGLOBALLockBytesImpl* newLockBytes; 189 190 newLockBytes = HeapAlloc(GetProcessHeap(), 0, sizeof(HGLOBALLockBytesImpl)); 190 191 191 192 if (newLockBytes!=0) 192 193 { … … 196 197 ICOM_VTBL(newLockBytes) = &HGLOBALLockBytesImpl_Vtbl; 197 198 newLockBytes->ref = 0; 198 199 199 200 /* 200 201 * Initialize the support. … … 398 399 * The function returns S_OK if the specified number of bytes were read 399 400 * or the end of the array was reached. 400 * It returns STG_E_READFAULT if the number of bytes to read does not equal 401 * It returns STG_E_READFAULT if the number of bytes to read does not equal 401 402 * the number of bytes actually read. 402 403 */ … … 503 504 if (libNewSize.s.HighPart != 0) 504 505 return STG_E_INVALIDFUNCTION; 505 506 506 507 if (This->byteArraySize.s.LowPart == libNewSize.s.LowPart) 507 508 return S_OK; … … 518 519 519 520 This->byteArraySize.s.LowPart = libNewSize.s.LowPart; 520 521 521 522 return S_OK; 522 523 }
Note:
See TracChangeset
for help on using the changeset viewer.