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