Changeset 2032 for trunk/src/kernel32/heapstring.cpp
- Timestamp:
- Dec 9, 1999, 1:52:21 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/heapstring.cpp
r1997 r2032 1 /* $Id: heapstring.cpp,v 1.2 1 1999-12-06 20:39:38sandervl Exp $ */1 /* $Id: heapstring.cpp,v 1.22 1999-12-09 00:52:20 sandervl Exp $ */ 2 2 3 3 /* … … 552 552 astring[unilen] = 0; //terminate 553 553 554 return unilen; 555 554 return unilen; //length of string (excluding terminator) 556 555 } 557 556 else … … 628 627 //SvL: Determine length of ascii string 629 628 in_bytes_left = strlen(in_buf)+1; 630 in_bytes_left = min(in_bytes_left, asciilen); //buffer size in bytes629 in_bytes_left = asciilen = min(in_bytes_left, asciilen); //buffer size in bytes 631 630 632 631 out_buf = (UniChar*)unicode; … … 639 638 &num_subs ); 640 639 641 //@@@PH what's this? 642 //unicode[asciilen-1-in_bytes_left] = 0; 643 644 //@@@PH what's this? 645 //return asciilen - 1; 646 return asciilen; 640 asciilen -= 1+uni_chars_left; //end + left bytes 641 642 unicode[asciilen] = 0; // always terminate string 643 return asciilen; //length of string (excluding terminator) 647 644 } 648 645 else
Note:
See TracChangeset
for help on using the changeset viewer.