Changeset 13 for trunk/src/helpers/syssound.c
- Timestamp:
- Nov 23, 2000, 7:36:41 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/syssound.c
r8 r13 153 153 { 154 154 // individual volume settings per sound 155 sscanf(p1, "% d", pulVolume);155 sscanf(p1, "%lu", pulVolume); 156 156 ulrc++; 157 157 } … … 290 290 "100", 291 291 szData2, sizeof(szData2)); 292 sscanf(szData2, "% d", pulVolume);292 sscanf(szData2, "%lu", pulVolume); 293 293 } 294 294 … … 332 332 CHAR szData[1000]; 333 333 // format: soundfile#description#volume 334 sprintf(szData, "%s#%s#% d", pszFile, pszDescr, ulVolume);334 sprintf(szData, "%s#%s#%lu", pszFile, pszDescr, ulVolume); 335 335 brc = PrfWriteProfileString(hiniMMPM, 336 336 MMINIKEY_SYSSOUNDS, szKey, … … 475 475 ulKeyLen = strlen(szFile)+1; // go beyond null byte 476 476 ulKeyLen += sprintf(szFile+ulKeyLen, 477 "% d",477 "%lu", 478 478 ulVolume) + 1; 479 479 // and write to OS2SYS.INI … … 608 608 // copy it 609 609 sscanf(pSchemeSoundData + cbSchemeSoundFile, 610 "% d",610 "%lu", 611 611 &ulVolume); 612 612 613 613 // and write data to MMPM.INI 614 614 // format: soundfile#description#volume 615 sprintf(szData, "%s#%s#% d", szFile, szDescription, ulVolume);615 sprintf(szData, "%s#%s#%lu", szFile, szDescription, ulVolume); 616 616 if (PrfWriteProfileString(hiniMMPM, 617 617 MMINIKEY_SYSSOUNDS, // "MMPM2_AlarmSounds"
Note:
See TracChangeset
for help on using the changeset viewer.