Changeset 7333 for trunk/src


Ignore:
Timestamp:
Nov 14, 2001, 1:27:02 PM (24 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NTDLL/wcstring.c

    r6712 r7333  
    285285INT __cdecl NTDLL_wcstol(LPWSTR s,LPWSTR *end,INT base)
    286286{
     287    INT ret;
     288#ifdef __WIN32OS2__
     289    LPSTR endA;
     290    LPSTR sA;
     291    STACK_strdupWtoA(s, sA)
     292#else
    287293    LPSTR sA = HEAP_strdupWtoA(GetProcessHeap(),0,s),endA;
    288     INT ret = strtol(sA,&endA,base);
    289 
     294#endif
     295 
     296    strtol(sA,&endA,base);
     297
     298#ifndef __WIN32OS2__
    290299    HeapFree(GetProcessHeap(),0,sA);
     300#endif
    291301    if (end) *end = s+(endA-sA); /* pointer magic checked. */
    292302    return ret;
Note: See TracChangeset for help on using the changeset viewer.