Changeset 5485 for trunk/src/kernel32/codepage.cpp
- Timestamp:
- Apr 5, 2001, 9:06:10 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/codepage.cpp
r5461 r5485 342 342 #endif 343 343 344 if (!src || (!dst && dstlen)) 344 //Docs say source ptr can't be the same as destination (Windows ME, NT4-SP6) 345 if (!src || (!dst && dstlen) || ((void *)src == (void *)dst)) 345 346 { 346 347 SetLastError( ERROR_INVALID_PARAMETER ); … … 348 349 } 349 350 350 if (srclen == -1) srclen = strlen(src) + 1; 351 //Even though the docs claim this only works for -1, testing shows it 352 //is done for any negative value (Windows ME, NT4-SP6) 353 if (srclen <= -1) srclen = strlen(src) + 1; 351 354 352 355 if (flags & MB_USEGLYPHCHARS) FIXME("MB_USEGLYPHCHARS not supported\n"); … … 421 424 #endif 422 425 423 if (!src || (!dst && dstlen)) 426 //Docs say source ptr can't be the same as destination (Windows ME, NT4-SP6) 427 if (!src || (!dst && dstlen) || ((void *)src == (void *)dst)) 424 428 { 425 429 SetLastError( ERROR_INVALID_PARAMETER ); … … 427 431 } 428 432 429 if (srclen == -1) srclen = strlenW(src) + 1; 433 //Even though the docs claim this only works for -1, testing shows it 434 //is done for any negative value (Windows ME, NT4 - SP6) 435 if (srclen <= -1) srclen = strlenW(src) + 1; 430 436 431 437 switch(page)
Note:
See TracChangeset
for help on using the changeset viewer.