- Timestamp:
- Feb 17, 2006, 1:32:04 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cppbase/bs_config.cpp
r285 r308 617 617 * 618 618 *@@changed V0.9.7 (2001-01-15) [umoeller]: now using csysLoadConfigSys 619 *@@changed WarpIN V1.0.9 (2006-02-16) [pr]: added _pszContentOld 619 620 */ 620 621 621 622 BSConfigSys::BSConfigSys() : BSRoot(tBSConfigSys) 622 623 { 623 _pszContent = NULL;624 _pszContent = _pszContentOld = NULL; 624 625 625 626 /* sprintf(_szFilename, "%c:\\config.sys", doshQueryBootDrive()); … … 632 633 if (arc != NO_ERROR) 633 634 throw BSConfigExcpt(CFGEXCPT_OPEN, arc); 635 else 636 _pszContentOld = strhdup(_pszContent, NULL); 634 637 635 638 _fDirty = FALSE; … … 642 645 * This does _not_ write the file. Use BSConfigSys::Flush() 643 646 * before deleting an instance of this. 647 * 648 *@@changed WarpIN V1.0.9 (2006-02-16) [pr]: added _pszContentOld 644 649 */ 645 650 … … 648 653 if (_pszContent) 649 654 free(_pszContent); 655 656 if (_pszContentOld) 657 free(_pszContentOld); 650 658 } 651 659 … … 766 774 *@@changed V0.9.3 (2000-05-12) [umoeller]: added pszBackup 767 775 *@@changed V0.9.6 (2000-10-27) [umoeller]: added check if contents are dirty 776 *@@changed WarpIN V1.0.9 (2006-02-16) [pr]: added _pszContentOld 768 777 */ 769 778 … … 774 783 int irc = 0; 775 784 776 if (_fDirty) 785 // WarpIN V1.0.9 (2006-02-16) [pr]: Check for content modification @@fixes 269 786 if ( _fDirty 787 && strhcmp (_pszContent, _pszContentOld) 788 ) 777 789 { 778 790 PSZ pszBackup = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.