Ignore:
Timestamp:
Jun 18, 2009, 8:55:46 PM (16 years ago)
Author:
RBRi
Message:

warning fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hlpmgr/sharedmemory.c

    r26 r360  
    1717  char FullName[ 260 ];
    1818
    19   pSharedMemory -> FFirst = TRUE; 
     19  pSharedMemory -> FFirst = TRUE;
    2020
    2121  strcpy( FullName, "\\SHAREMEM\\" );
     
    3131  {
    3232    LogEvent( "  Unable to create shared mem: %d", rc );
    33     if ( rc == ERROR_ALREADY_EXISTS ) 
     33    if ( rc == ERROR_ALREADY_EXISTS )
    3434    {
    3535      LogEvent( "  - Already exists, open" );
     
    5555  while( TRUE )
    5656  {
    57     rc = DosOpenMutexSem( pszName, 
    58                           phmtx ); 
     57    rc = DosOpenMutexSem( pszName,
     58                          phmtx );
    5959
    6060    if ( rc != ERROR_SEM_NOT_FOUND )
     
    6262      break;
    6363
    64     rc = DosCreateMutexSem( pszName, 
     64    rc = DosCreateMutexSem( pszName,
    6565                            phmtx,
    66                             0, 
    67                             FALSE ); 
     66                            0,
     67                            FALSE );
    6868    if ( rc != ERROR_DUPLICATE_NAME )
    6969      // ok, or some error
     
    9191                                    ULONG Size,
    9292                                    ULONG ReserveSize, // size to reserve at start of memory
    93                                     TSubAllocatedSharedMemory* pSharedMemory ) 
     93                                    TSubAllocatedSharedMemory* pSharedMemory )
    9494{
    9595  APIRET rc;
     
    113113  LogEvent( "  semaphore name: %s", SemaphoreName );
    114114
    115   rc = OpenOrCreateMutex( SemaphoreName, 
     115  rc = OpenOrCreateMutex( SemaphoreName,
    116116                          & StartupSemaphore );
    117117  if ( rc != 0 )
     
    151151  }
    152152
    153   pSharedMemory -> FAllocationArea = 
     153  pSharedMemory -> FAllocationArea =
    154154    (PBYTE) pSharedMemory -> FMem.FPointer
    155155    + ActualReserveSize;
     
    207207                    void** p )
    208208{
    209   APIRET rc; 
     209  APIRET rc;
    210210  PULONG pSize;
    211211  ULONG Size;
     
    221221
    222222  *p = NULL;
    223 }   
     223}
    224224
    225225void ReleaseSubAllocatedSharedMemory( TSubAllocatedSharedMemory* pSharedMemory )
     
    232232  ReleaseSharedMemory( & pSharedMemory -> FMem );
    233233}
    234 
     234
Note: See TracChangeset for help on using the changeset viewer.