Ignore:
Timestamp:
Sep 13, 1999, 11:06:05 AM (26 years ago)
Author:
sandervl
Message:

Fix for MultibyteToWideChar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/unicode.cpp

    r571 r917  
    1 /* $Id: unicode.cpp,v 1.13 1999-08-19 10:25:27 sandervl Exp $ */
     1/* $Id: unicode.cpp,v 1.14 1999-09-13 09:06:05 sandervl Exp $ */
    22
    33/*
     
    5656  }
    5757  if(cchWideChar == 0) {//return space required for conversion
    58         if(cchMultiByte == -1)  cchMultiByte = strlen(lpMultiByteStr);
     58        if(cchMultiByte == -1)
     59            cchMultiByte = strlen(lpMultiByteStr) + 1;
    5960        return(cchMultiByte);   //return length in wide chars
    6061  }
    6162  if(cchMultiByte == -1)
    62         cchMultiByte = strlen(lpMultiByteStr);
     63        cchMultiByte = strlen(lpMultiByteStr) + 1;
    6364
    6465  len = min(cchWideChar, cchMultiByte);
Note: See TracChangeset for help on using the changeset viewer.