Changeset 4525 for trunk/src/kernel32/heapstring.cpp
- Timestamp:
- Oct 23, 2000, 9:35:11 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/heapstring.cpp
r4363 r4525 1 /* $Id: heapstring.cpp,v 1.3 3 2000-10-02 13:05:37 phallerExp $ */1 /* $Id: heapstring.cpp,v 1.34 2000-10-23 19:35:11 sandervl Exp $ */ 2 2 3 3 /* … … 493 493 UniChar* in_buf; 494 494 char* out_buf; 495 496 dprintf2(("KERNEL32: HeapString: lstrcpynWtoA(%08x,%08xh,%d)\n", 497 astring, 498 ustring, 499 unilen)); 495 500 496 501 if (ustring == NULL) … … 552 557 } 553 558 559 //lstrcpynWtoA and lstrcpynAtoW must zero-terminate the string 560 //because Wine code depends on this behaviour (i.e. comdlg32) 554 561 int WIN32API lstrcpynWtoA(LPSTR astring, 555 562 LPCWSTR ustring, 556 563 int unilen) 557 564 { 558 return lstrcpynCtoA(astring, ustring, unilen, GetWindowsUconvObject()); 565 int ret; 566 567 ret = lstrcpynCtoA(astring, ustring, unilen, GetWindowsUconvObject()); 568 astring[unilen-1] = 0; 569 return ret; 559 570 } 560 571 … … 660 671 } 661 672 673 //lstrcpynWtoA and lstrcpynAtoW must zero-terminate the string 674 //because Wine code depends on this behaviour (i.e. comdlg32) 662 675 int WIN32API lstrcpynAtoW(LPWSTR unicode, 663 676 LPCSTR ascii, 664 677 int asciilen) 665 678 { 666 return lstrcpynAtoC(unicode, ascii, asciilen, GetWindowsUconvObject()); 679 int ret; 680 681 ret = lstrcpynAtoC(unicode, ascii, asciilen, GetWindowsUconvObject()); 682 unicode[asciilen-1] = 0; 683 return ret; 667 684 } 668 685
Note:
See TracChangeset
for help on using the changeset viewer.