Ignore:
Timestamp:
Jan 1, 2001, 4:30:29 PM (25 years ago)
Author:
umoeller
Message:

Tons of updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/syssound.c

    r13 r18  
    173173 *@@changed V0.9.6 (2000-10-16) [umoeller]: now using MMBASE environment variable
    174174 *@@changed V0.9.6 (2000-10-16) [umoeller]: added proper HAB param
     175 *@@changed V0.9.7 (2000-12-17) [umoeller]: fixed broken MMBASE handling
    175176 */
    176177
     
    186187        // variable set:
    187188        PSZ p;
    188         sprintf(szMMPM, "%s\\MMPM.INI", pszMMPMPath);
     189
     190        strcpy(szMMPM, pszMMPMPath); // V0.9.7 (2000-12-17) [umoeller]
     191
    189192        // kill semicolon if present
    190193        p = strchr(szMMPM, ';');
    191194        if (p)
    192195           *p = 0;
     196
     197        strcat(szMMPM, "\\MMPM.INI");
    193198    }
    194199    else
     
    251256    BOOL    rc = FALSE;
    252257    HINI    hiniMMPM = sndOpenMmpmIni(hab);
     258
     259    #ifdef DEBUG_SOUNDS
     260        _Pmpf((__FUNCTION__ ": entering, hiniMMPM is 0x%lX", hiniMMPM));
     261    #endif
     262
    253263    if (hiniMMPM)
    254264    {
     
    540550    APIRET arc = NO_ERROR;
    541551
    542     _Pmpf(("Entering sndLoadSoundScheme"));
     552    #ifdef DEBUG_SOUNDS
     553        _Pmpf(("Entering sndLoadSoundScheme"));
     554    #endif
    543555
    544556    if (hiniMMPM)
     
    550562                                    pszScheme,
    551563                                    NULL);
    552         _Pmpf(("    pszSchemeAppName: %s", pszSchemeAppName));
     564        #ifdef DEBUG_SOUNDS
     565            _Pmpf(("    pszSchemeAppName: %s", pszSchemeAppName));
     566        #endif
    553567
    554568        if (pszSchemeAppName)
     
    650664        arc = ERROR_INVALID_HANDLE;
    651665
    652     _Pmpf(("End of sndLoadSoundScheme, arc: %d", arc));
     666    #ifdef DEBUG_SOUNDS
     667        _Pmpf(("End of sndLoadSoundScheme, arc: %d", arc));
     668    #endif
    653669    return (arc);
    654670}
Note: See TracChangeset for help on using the changeset viewer.