Ignore:
Timestamp:
Nov 23, 2000, 7:36:41 PM (25 years ago)
Author:
umoeller
Message:

Updates for V0.9.6.

File:
1 edited

Legend:

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

    r8 r13  
    153153            {
    154154                // individual volume settings per sound
    155                 sscanf(p1, "%d", pulVolume);
     155                sscanf(p1, "%lu", pulVolume);
    156156                ulrc++;
    157157            }
     
    290290                                          "100",
    291291                                          szData2, sizeof(szData2));
    292                     sscanf(szData2, "%d", pulVolume);
     292                    sscanf(szData2, "%lu", pulVolume);
    293293                }
    294294
     
    332332        CHAR szData[1000];
    333333        // format: soundfile#description#volume
    334         sprintf(szData, "%s#%s#%d", pszFile, pszDescr, ulVolume);
     334        sprintf(szData, "%s#%s#%lu", pszFile, pszDescr, ulVolume);
    335335        brc = PrfWriteProfileString(hiniMMPM,
    336336                                    MMINIKEY_SYSSOUNDS, szKey,
     
    475475                    ulKeyLen = strlen(szFile)+1;    // go beyond null byte
    476476                    ulKeyLen += sprintf(szFile+ulKeyLen,
    477                                 "%d",
     477                                "%lu",
    478478                                ulVolume) + 1;
    479479                    // and write to OS2SYS.INI
     
    608608                            // copy it
    609609                            sscanf(pSchemeSoundData + cbSchemeSoundFile,
    610                                    "%d",
     610                                   "%lu",
    611611                                   &ulVolume);
    612612
    613613                        // and write data to MMPM.INI
    614614                        // format: soundfile#description#volume
    615                         sprintf(szData, "%s#%s#%d", szFile, szDescription, ulVolume);
     615                        sprintf(szData, "%s#%s#%lu", szFile, szDescription, ulVolume);
    616616                        if (PrfWriteProfileString(hiniMMPM,
    617617                                                  MMINIKEY_SYSSOUNDS, // "MMPM2_AlarmSounds"
Note: See TracChangeset for help on using the changeset viewer.