Changeset 370 for trunk/Include/system/string.sbp
- Timestamp:
- Nov 3, 2007, 5:18:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/system/string.sbp
r303 r370 39 39 Function GetStr(psz As PSTR, len As SIZE_T, ByRef wcs As PWSTR) As SIZE_T 40 40 If psz = 0 Then Return 0 41 Dim lenWCS = MultiByteToWideChar(CP_THREAD_ACP, 0, psz, len , 0, 0)41 Dim lenWCS = MultiByteToWideChar(CP_THREAD_ACP, 0, psz, len As Long, 0, 0) 42 42 wcs = _System_AllocForConvertedString(SizeOf (WCHAR) * (lenWCS + 1)) As PWSTR 43 GetStr = MultiByteToWideChar(CP_THREAD_ACP, 0, psz, len , wcs, lenWCS)43 GetStr = MultiByteToWideChar(CP_THREAD_ACP, 0, psz, len As Long, wcs, lenWCS) 44 44 wcs[GetStr] = 0 45 45 End Function … … 73 73 Function GetStr(psz As PWSTR, len As SIZE_T, ByRef mbs As PSTR) As SIZE_T 74 74 If psz = 0 Then Return 0 75 Dim lenMBS = WideCharToMultiByte(CP_THREAD_ACP, 0, psz, len , 0, 0, 0, 0)75 Dim lenMBS = WideCharToMultiByte(CP_THREAD_ACP, 0, psz, len As Long, 0, 0, 0, 0) 76 76 mbs = _System_AllocForConvertedString(SizeOf (SByte) * (lenMBS + 1)) As PSTR 77 GetStr = WideCharToMultiByte(CP_THREAD_ACP, 0, psz, len , mbs, lenMBS, 0, 0) As SIZE_T77 GetStr = WideCharToMultiByte(CP_THREAD_ACP, 0, psz, len As Long, mbs, lenMBS, 0, 0) As SIZE_T 78 78 mbs[GetStr] = 0 79 79 End Function
Note:
See TracChangeset
for help on using the changeset viewer.