Changeset 1663 for trunk/src/kernel32/heapstring.cpp
- Timestamp:
- Nov 9, 1999, 3:19:47 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/heapstring.cpp
r1605 r1663 1 /* $Id: heapstring.cpp,v 1.1 7 1999-11-05 09:16:57sandervl Exp $ */1 /* $Id: heapstring.cpp,v 1.18 1999-11-09 14:19:46 sandervl Exp $ */ 2 2 3 3 /* … … 539 539 } 540 540 541 uni_chars_left = unilen-1; //elements 541 //SvL: Determine length of unicode string 542 uni_chars_left = UniStrlen((UniChar*)ustring)+1; 543 uni_chars_left = min(uni_chars_left, unilen); 544 unilen = uni_chars_left; 545 542 546 out_bytes_left = uni_chars_left; //size in bytes == elements 543 547 in_buf = (UniChar*)ustring; … … 625 629 //in_bytes_left = asciilen-1; //buffer size in bytes 626 630 627 in_bytes_left = asciilen; //buffer size in bytes 631 //SvL: Determine length of ascii string 632 in_bytes_left = strlen(in_buf)+1; 633 in_bytes_left = min(in_bytes_left, asciilen); //buffer size in bytes 634 628 635 out_buf = (UniChar*)unicode; 629 636 … … 637 644 //@@@PH what's this? 638 645 //unicode[asciilen-1-in_bytes_left] = 0; 639 640 //if (rc != ULS_SUCCESS && in_bytes_left > 0) //CB: never the case during my tests641 // dprintf(("KERNEL32: AsciiToUnicode failed, %d bytes left!\n",in_bytes_left));642 646 643 647 //@@@PH what's this?
Note:
See TracChangeset
for help on using the changeset viewer.