"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/msvcrt/wcs.c" between
wine-6.0.tar.xz and wine-6.0.1.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs.

wcs.c  (wine-6.0.tar.xz):wcs.c  (wine-6.0.1.tar.xz)
skipping to change at line 613 skipping to change at line 613
for(i=0; i<count; i++) { for(i=0; i<count; i++) {
if((*wcstr)[i] > 255) { if((*wcstr)[i] > 255) {
*_errno() = EILSEQ; *_errno() = EILSEQ;
return -1; return -1;
} }
mbstr[i] = (*wcstr)[i]; mbstr[i] = (*wcstr)[i];
if(!(*wcstr)[i]) break; if(!(*wcstr)[i]) break;
} }
if(i < count) *wcstr = NULL;
else *wcstr += i;
return i; return i;
} }
pused_default = (locinfo->lc_codepage != CP_UTF8 ? &used_default : NULL); pused_default = (locinfo->lc_codepage != CP_UTF8 ? &used_default : NULL);
if(!mbstr) { if(!mbstr) {
tmp = WideCharToMultiByte(locinfo->lc_codepage, WC_NO_BEST_FIT_CHARS, tmp = WideCharToMultiByte(locinfo->lc_codepage, WC_NO_BEST_FIT_CHARS,
*wcstr, -1, NULL, 0, NULL, pused_default); *wcstr, -1, NULL, 0, NULL, pused_default);
if(!tmp || used_default) { if(!tmp || used_default) {
*_errno() = EILSEQ; *_errno() = EILSEQ;
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)