Changeset 370 for trunk/Include/system
- Timestamp:
- Nov 3, 2007, 5:18:30 PM (17 years ago)
- Location:
- trunk/Include/system
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/system/gc.sbp
r369 r370 25 25 Type _System_MemoryObject 26 26 ptr As VoidPtr 27 size As Long27 size As SIZE_T 28 28 flags As DWord 29 29 generationCount As Long -
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.