Changeset 238 for trunk/src/kernel32/unicode.cpp
- Timestamp:
- Jun 28, 1999, 6:59:17 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/unicode.cpp
r163 r238 1 /* $Id: unicode.cpp,v 1. 8 1999-06-23 19:36:24 phallerExp $ */1 /* $Id: unicode.cpp,v 1.9 1999-06-28 16:59:17 sandervl Exp $ */ 2 2 3 3 /* … … 7 7 * Copyright 1999 Patrick haller 8 8 * Copyright 1999 Achim Hasenmueller 9 * Copyright 1999 Christoph Bratschi 9 10 */ 10 11 #include <os2win.h> … … 186 187 unicode)); 187 188 188 /* @@@PH 98/06/07 */ 189 if ( (ascii == NULL) || /* garbage in, garbage out ! */ 190 (unicode == NULL) ) 189 //CB: no input, set at least 0 190 if (ascii == NULL) 191 { 192 if (unicode != NULL && asciilen > 0) unicode[0] = 0; 191 193 return; 194 } 195 196 if (unicode == NULL || asciilen <= 0) return; //nothing to do 192 197 193 198 // dprintf(("KERNEL32: AsciiToUnicodeN %s\n", ascii)); … … 205 210 &out_buf, &uni_chars_left, 206 211 &num_subs ); 207 } 208 else 212 } else 209 213 { 210 214 for(i=0; … … 231 235 } 232 236 237
Note:
See TracChangeset
for help on using the changeset viewer.