Ignore:
Timestamp:
Aug 2, 2000, 5:51:35 PM (25 years ago)
Author:
bird
Message:

Added the CVS keyword Id.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msacm32/internal.cpp

    r2105 r3925  
     1/* $Id: internal.cpp,v 1.5 2000-08-02 15:49:32 bird Exp $ */
    12/* -*- tab-width: 8; c-basic-offset: 4 -*- */
    23
     
    2223#include "debugtools.h"
    2324
    24 DEFAULT_DEBUG_CHANNEL(msacm)   
     25DEFAULT_DEBUG_CHANNEL(msacm)
    2526
    2627/**********************************************************************/
     
    3132
    3233/***********************************************************************
    33  *           MSACM_RegisterDriver32() 
     34 *           MSACM_RegisterDriver32()
    3435 */
    3536PWINE_ACMDRIVERID MSACM_RegisterDriver(LPSTR pszDriverAlias, LPSTR pszFileName,
    3637                                       HINSTANCE hinstModule)
    37 { 
     38{
    3839    PWINE_ACMDRIVERID padid;
    3940
     
    5354    if (!MSACM_pFirstACMDriverID)
    5455        MSACM_pFirstACMDriverID = padid;
    55    
     56
    5657    return padid;
    5758}
    5859
    5960/***********************************************************************
    60  *           MSACM_RegisterAllDrivers32() 
     61 *           MSACM_RegisterAllDrivers32()
    6162 */
    6263void MSACM_RegisterAllDrivers(void)
     
    6465    LPSTR pszBuffer;
    6566    DWORD dwBufferLength;
    66    
    67     /* FIXME 
     67
     68    /* FIXME
    6869     *  What if the user edits system.ini while the program is running?
    6970     *  Does Windows handle that?
     
    7172    if (MSACM_pFirstACMDriverID)
    7273        return;
    73    
     74
    7475    /* FIXME: Do not work! How do I determine the section length? */
    7576    dwBufferLength = 1024;
    7677/* EPP  GetPrivateProfileSectionA("drivers32", NULL, 0, "system.ini"); */
    77    
     78
    7879    pszBuffer = (LPSTR) HeapAlloc(MSACM_hHeap, 0, dwBufferLength);
    7980    if (GetPrivateProfileSectionA("drivers32", pszBuffer, dwBufferLength, "system.ini")) {
     
    8788                    MSACM_RegisterDriver(s, s2, 0);
    8889                }
    89             } 
     90            }
    9091            s += lstrlenA(s) + 1; /* Either next char or \0 */
    9192        }
    9293    }
    93    
     94
    9495    HeapFree(MSACM_hHeap, 0, pszBuffer);
    9596}
     
    101102{
    102103    PWINE_ACMDRIVERID pNextACMDriverID;
    103    
     104
    104105    if (p->pACMDriverList)
    105106        acmDriverClose((HACMDRIVER) p->pACMDriverList, 0);
    106    
     107
    107108    if (p->pszDriverAlias)
    108109        HeapFree(MSACM_hHeap, 0, p->pszDriverAlias);
    109110    if (p->pszFileName)
    110111        HeapFree(MSACM_hHeap, 0, p->pszFileName);
    111    
     112
    112113    if (p == MSACM_pFirstACMDriverID)
    113114        MSACM_pFirstACMDriverID = p->pNextACMDriverID;
     
    119120    if (p->pNextACMDriverID)
    120121        p->pNextACMDriverID->pPrevACMDriverID = p->pPrevACMDriverID;
    121    
     122
    122123    pNextACMDriverID = p->pNextACMDriverID;
    123    
     124
    124125    HeapFree(MSACM_hHeap, 0, p);
    125    
     126
    126127    return pNextACMDriverID;
    127128}
     
    140141
    141142/***********************************************************************
    142  *           MSACM_GetDriverID32() 
     143 *           MSACM_GetDriverID32()
    143144 */
    144145PWINE_ACMDRIVERID MSACM_GetDriverID(HACMDRIVERID hDriverID)
Note: See TracChangeset for help on using the changeset viewer.