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/moniker.c

    r5843 r6648  
     1/* $Id: moniker.c,v 1.3 2001-09-05 13:17:10 bird Exp $ */
    12/*
    2  *      Monikers
     3 *  Monikers
    34 *
    4  *      Copyright 1998  Marcus Meissner
     5 *  Copyright 1998  Marcus Meissner
    56 *      Copyright 1999  Noomen Hamza
    67 */
     
    4647    DWORD      runObjTabLastIndx;  /* first free index element in the table.        */
    4748    DWORD      runObjTabRegister; /* registration key of the next registered object */
    48    
     49
    4950} RunningObjectTableImpl;
    5051
     
    136137{
    137138    TRACE("()\n");
    138    
     139
    139140    if (runningObjectTableInstance==NULL)
    140141        return E_INVALIDARG;
     
    169170            if (( This->runObjTab[i].regTypeObj &  ROTFLAGS_REGISTRATIONKEEPSALIVE) != 0)
    170171                IUnknown_Release(This->runObjTab[i].pObj);
    171  
     172
    172173            IMoniker_Release(This->runObjTab[i].pmkObj);
    173174        }
     
    229230    if (runningObjectTableInstance==NULL)
    230231        return E_POINTER;
    231    
     232
    232233    RunningObjectTableImpl_Release((IRunningObjectTable*)runningObjectTableInstance);
    233234
     
    270271    This->runObjTab[This->runObjTabLastIndx].identRegObj = This->runObjTabRegister;
    271272    CoFileTimeNow(&(This->runObjTab[This->runObjTabLastIndx].lastModifObj));
    272    
     273
    273274    /* gives a registration identifier to the registered object*/
    274275    (*pdwRegister)= This->runObjTabRegister;
     
    277278
    278279        FIXME("runObjTabRegister: %ld is out of data limite \n",This->runObjTabRegister);
    279         return E_FAIL;
     280    return E_FAIL;
    280281}
    281282    This->runObjTabRegister++;
    282283    This->runObjTabLastIndx++;
    283    
     284
    284285    if (This->runObjTabLastIndx == This->runObjTabSize){ /* table is full ! so it must be resized */
    285286
     
    295296
    296297    IMoniker_AddRef(pmkObjectName);
    297    
     298
    298299    return res;
    299300}
     
    321322
    322323    IMoniker_Release(This->runObjTab[index].pmkObj);
    323    
     324
    324325    /* remove the object from the table */
    325326    for(j=index; j<This->runObjTabLastIndx-1; j++)
    326327        This->runObjTab[j]= This->runObjTab[j+1];
    327    
     328
    328329    This->runObjTabLastIndx--;
    329330
     
    336337HRESULT WINAPI RunningObjectTableImpl_IsRunning(  IRunningObjectTable* iface,
    337338                                                  IMoniker *pmkObjectName)  /* Pointer to the moniker of the object whose status is desired */
    338 {   
     339{
    339340    ICOM_THIS(RunningObjectTableImpl,iface);
    340341
     
    358359    if (ppunkObject==NULL)
    359360        return E_POINTER;
    360    
     361
    361362    *ppunkObject=0;
    362363
     
    393394    return S_OK;
    394395}
    395    
     396
    396397/***********************************************************************
    397398 *        RunningObjectTable_GetTimeOfLastChange
     
    447448        /* search object identified by a register identifier */
    448449        for(i=0;((i<This->runObjTabLastIndx)&&(This->runObjTab[i].identRegObj!=identReg));i++);
    449    
     450
    450451    if (i==This->runObjTabLastIndx)  return S_FALSE;
    451452
     
    456457
    457458/******************************************************************************
    458  *              GetRunningObjectTable16 [OLE2.30]
     459 *      GetRunningObjectTable16 [OLE2.30]
    459460 */
    460461HRESULT WINAPI GetRunningObjectTable16(DWORD reserved, LPRUNNINGOBJECTTABLE *pprot)
    461462{
    462         FIXME("(%ld,%p),stub!\n",reserved,pprot);
     463    FIXME("(%ld,%p),stub!\n",reserved,pprot);
    463464    return E_NOTIMPL;
    464465}
     
    490491HRESULT WINAPI OleRun(LPUNKNOWN pUnknown)
    491492{
    492   IRunnableObject       *runable;
     493  IRunnableObject   *runable;
    493494  ICOM_THIS(IRunnableObject,pUnknown);
    494   LRESULT               ret;
     495  LRESULT       ret;
    495496
    496497#ifdef __WIN32OS2__
     
    501502
    502503  ret = IRunnableObject_QueryInterface(This,&IID_IRunnableObject,(LPVOID*)&runable);
    503   if (ret) 
    504         return 0; /* Appears to return no error. */
     504  if (ret)
     505    return 0; /* Appears to return no error. */
    505506  ret  = IRunnableObject_Run(runable,NULL);
    506507  IRunnableObject_Release(runable);
     
    512513 */
    513514HRESULT WINAPI MkParseDisplayName(LPBC pbc, LPCOLESTR szUserName,
    514                                 LPDWORD pchEaten, LPMONIKER *ppmk)
     515                LPDWORD pchEaten, LPMONIKER *ppmk)
    515516{
    516517    FIXME("(%p, %s, %p, %p): stub.\n", pbc, debugstr_w(szUserName), pchEaten, *ppmk);
    517518    if (!(IsValidInterface((LPUNKNOWN) pbc)))
    518         return E_INVALIDARG;
     519    return E_INVALIDARG;
    519520
    520521    return MK_E_SYNTAX;
Note: See TracChangeset for help on using the changeset viewer.