Ignore:
Timestamp:
Jan 18, 2001, 7:14:16 PM (25 years ago)
Author:
sandervl
Message:

MultiByteToWideChar & lstrcpynA bugfixes; added cdaudio system.ini section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/initsystem.cpp

    r4946 r4964  
    1 /* $Id: initsystem.cpp,v 1.25 2001-01-14 17:16:54 sandervl Exp $ */
     1/* $Id: initsystem.cpp,v 1.26 2001-01-18 18:14:16 sandervl Exp $ */
    22/*
    33 * Odin system initialization (registry, directories & environment)
     
    101101#define DEVICE_GROUP_SCSICDROM  "SCSI CDROM Class"
    102102
     103const char szMci[] = "mci";
     104const char szCDAudio[] = "cdaudio";
     105const char szMciCDA[] = "mcicda.drv";
     106
    103107//******************************************************************************
    104108//******************************************************************************
     
    676680       PROFILE_SetOdinIniString(ODINFONTSECTION, "MS Sans Serif", "WarpSans");
    677681   }
    678 
     682   //Create system.ini with [mci] section
     683   strcpy(shellpath, InternalGetWindowsDirectoryA());
     684   strcat(shellpath, "\\system.ini");
     685   
     686   if(GetPrivateProfileStringA(szMci, szCDAudio, szMciCDA, &temp, 0, shellpath) <= 1) {
     687      WritePrivateProfileStringA(szMci, szCDAudio, szMciCDA, shellpath);
     688   }
    679689   return TRUE;
    680690
Note: See TracChangeset for help on using the changeset viewer.