Ignore:
Timestamp:
Sep 5, 2001, 3:19:02 PM (24 years ago)
Author:
bird
Message:

Added $Id:$ keyword.

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 $ */
    12/******************************************************************************
    23 *
     
    2526{
    2627  /*
    27    * Needs to be the first item in the stuct 
     28   * Needs to be the first item in the stuct
    2829   * since we want to cast this in an ILockBytes pointer
    2930   */
     
    188189  HGLOBALLockBytesImpl* newLockBytes;
    189190  newLockBytes = HeapAlloc(GetProcessHeap(), 0, sizeof(HGLOBALLockBytesImpl));
    190  
     191
    191192  if (newLockBytes!=0)
    192193  {
     
    196197    ICOM_VTBL(newLockBytes) = &HGLOBALLockBytesImpl_Vtbl;
    197198    newLockBytes->ref    = 0;
    198  
     199
    199200    /*
    200201     * Initialize the support.
     
    398399   * The function returns S_OK if the specified number of bytes were read
    399400   * 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
    401402   * the number of bytes actually read.
    402403   */
     
    503504  if (libNewSize.s.HighPart != 0)
    504505    return STG_E_INVALIDFUNCTION;
    505  
     506
    506507  if (This->byteArraySize.s.LowPart == libNewSize.s.LowPart)
    507508    return S_OK;
     
    518519
    519520  This->byteArraySize.s.LowPart = libNewSize.s.LowPart;
    520  
     521
    521522  return S_OK;
    522523}
Note: See TracChangeset for help on using the changeset viewer.