Changeset 7343 for trunk/src/NTDLL/wcstring.c
- Timestamp:
- Nov 14, 2001, 7:50:18 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/NTDLL/wcstring.c
r7333 r7343 285 285 INT __cdecl NTDLL_wcstol(LPWSTR s,LPWSTR *end,INT base) 286 286 { 287 INT ret;288 #ifdef __WIN32OS2__289 LPSTR endA;290 LPSTR sA;291 STACK_strdupWtoA(s, sA)292 #else293 287 LPSTR sA = HEAP_strdupWtoA(GetProcessHeap(),0,s),endA; 294 #endif 295 296 strtol(sA,&endA,base); 297 298 #ifndef __WIN32OS2__ 288 INT ret = strtol(sA,&endA,base); 289 299 290 HeapFree(GetProcessHeap(),0,sA); 300 #endif301 291 if (end) *end = s+(endA-sA); /* pointer magic checked. */ 302 292 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.