Changeset 7343 for trunk/src


Ignore:
Timestamp:
Nov 14, 2001, 7:50:18 PM (24 years ago)
Author:
sandervl
Message:

removed unnecessary changes

Location:
trunk/src
Files:
4 edited

Legend:

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

    r7333 r7343  
    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
    293287    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
    299290    HeapFree(GetProcessHeap(),0,sA);
    300 #endif
    301291    if (end) *end = s+(endA-sA); /* pointer magic checked. */
    302292    return ret;
  • trunk/src/ole32/compobj.c

    r7335 r7343  
    539539        CLSID *id               /* [out] GUID represented by above string */
    540540) {
    541 #ifdef __WIN32OS2__
    542     HRESULT    ret;
    543     LPOLESTR16 xid;
    544     STACK_strdupWtoA(idstr, xid)
    545     ret = CLSIDFromString16( (LPOLESTR16)xid,id);
    546     if(ret != S_OK) { /* It appears a ProgID is also valid */
    547         ret = CLSIDFromProgID(idstr, id);
    548     }
    549     return ret;
    550 #else
    551541    LPOLESTR16      xid = HEAP_strdupWtoA(GetProcessHeap(),0,idstr);
    552542    HRESULT       ret = CLSIDFromString16(xid,id);
     543
    553544    HeapFree(GetProcessHeap(),0,xid);
    554545    if(ret != S_OK) { /* It appears a ProgID is also valid */
     
    556547    }
    557548    return ret;
    558 #endif
    559549}
    560550
     
    789779        LPCLSID riid            /* [out] associated CLSID */
    790780) {
    791 #ifdef __WIN32OS2__
    792         LPOLESTR16 pid;
    793         STACK_strdupWtoA(progid, pid)
    794         return CLSIDFromProgID16((LPOLESTR16)pid,riid);
    795 #else
    796781        LPOLESTR16 pid = HEAP_strdupWtoA(GetProcessHeap(),0,progid);
    797782        HRESULT       ret = CLSIDFromProgID16(pid,riid);
     
    799784        HeapFree(GetProcessHeap(),0,pid);
    800785        return ret;
    801 #endif
    802786}
    803787
  • trunk/src/ole32/storage32.c

    r7335 r7343  
    11781178    ULONG          propertyIndex;
    11791179    ULONG          lastProperty  = 0;
    1180 
    11811180    ULONG          blockCount    = 0;
    11821181
     
    70497048StgIsStorageFile(LPCOLESTR fn)
    70507049{
    7051 #ifdef __WIN32OS2__
    7052         LPOLESTR16 xfn;
    7053         STACK_strdupWtoA(fn, xfn)
    7054         return StgIsStorageFile16((LPOLESTR16)xfn);
    7055 #else
    70567050        LPOLESTR16      xfn = HEAP_strdupWtoA(GetProcessHeap(),0,fn);
    70577051        HRESULT ret = StgIsStorageFile16(xfn);
     7052
    70587053        HeapFree(GetProcessHeap(),0,xfn);
    70597054        return ret;
     7055}
    70607056#endif
    7061 }
    7062 #endif
  • trunk/src/shell32/shelllink.c

    r7336 r7343  
    232232        _IPersistStream_From_ICOM_THIS(IPersistStream, This)
    233233
    234 #ifdef __WIN32OS2__
    235         STACK_strdupWtoA(pszFileName, sFile)
    236 #else
    237234        sFile = HEAP_strdupWtoA ( GetProcessHeap(), 0, pszFileName);
    238 #endif
    239235
    240236        TRACE("(%p, %s)\n",This, sFile);
     
    252248        }
    253249       
    254 #ifndef __WIN32OS2__
     250#ifdef __WIN32OS2__
    255251       // PH 2001-11-13 memory leak in WINE?
    256252       HeapFree( GetProcessHeap(), 0, sFile);
Note: See TracChangeset for help on using the changeset viewer.