Changeset 4756
- Timestamp:
- Dec 5, 2000, 2:04:48 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/kernel32/profile.cpp ¶
r4387 r4756 1 /* $Id: profile.cpp,v 1.2 7 2000-10-02 18:39:35sandervl Exp $ */1 /* $Id: profile.cpp,v 1.28 2000-12-05 13:04:48 sandervl Exp $ */ 2 2 3 3 /* … … 563 563 if (IS_ENTRY_COMMENT(key->name)) continue; /* Skip comments */ 564 564 PROFILE_CopyEntry( buffer, key->name, len - 1, handle_env ); 565 566 #ifdef __WIN32OS2__ 567 /* CW: This fixes a crash in Windows Media Player setup where GetPrivateProfileSectionA() is called with len=5 568 which is not enough for holding any key name. */ 569 if(strlen(key->name)>len-2) { 570 buffer += len; 571 len=1; /* Causes the funktion to end with a return code of len-2 */ 572 break; 573 } 574 /*****************************************/ 575 #endif 576 565 577 len -= strlen(buffer) + 1; 566 578 buffer += strlen(buffer) + 1; … … 569 581 PROFILE_CopyEntry ( buffer, 570 582 key->value, len - 1, handle_env ); 583 584 #ifdef __WIN32OS2__ 585 /* CW: This is the same as above for the keyname. I don't have a crashing app to prove this code but 586 expect the same problem as with the key name if the len is to short. */ 587 if(strlen(key->value)>len-2) { 588 buffer += len; 589 len=1; 590 break; 591 } 592 /*****************************************/ 593 #endif 594 571 595 len -= strlen(buffer) + 1; 572 596 buffer += strlen(buffer) + 1;
Note:
See TracChangeset
for help on using the changeset viewer.