Changeset 177


Ignore:
Timestamp:
Mar 23, 2007, 12:57:19 AM (18 years ago)
Author:
森崎 孝明
Message:

些細なバグの修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/system/string.sbp

    r175 r177  
    3636Function GetStr(psz As PSTR, len As SIZE_T, ByRef wcs As PWSTR) As SIZE_T
    3737    If psz = 0 Then Return 0
    38     Dim sizeWCS = MultiByteToWideChar(CP_THREAD_ACP, 0, psz, len, 0, 0)
     38    Dim sizeWCS = MultiByteToWideChar(CP_THREAD_ACP, 0, psz, len, 0, 0) + 1
    3939    wcs = _System_AllocForConvertedString(SizeOf (WCHAR) * sizeWCS) As PWSTR
    4040    GetStr = MultiByteToWideChar(CP_THREAD_ACP, 0, psz, len, wcs, sizeWCS)
Note: See TracChangeset for help on using the changeset viewer.