Changeset 1280 for trunk/src


Ignore:
Timestamp:
Oct 14, 1999, 11:21:43 AM (26 years ago)
Author:
sandervl
Message:

Heap fixes + dll load bugfixes

Location:
trunk/src/kernel32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/heapstring.cpp

    r1131 r1280  
    1 /* $Id: heapstring.cpp,v 1.13 1999-10-04 20:52:33 sandervl Exp $ */
     1/* $Id: heapstring.cpp,v 1.14 1999-10-14 09:21:41 sandervl Exp $ */
    22
    33/*
     
    1212 * Includes                                                                  *
    1313 *****************************************************************************/
     14#undef DEBUG
    1415
    1516#include <os2win.h>
     
    275276             arg2,
    276277             arg2));
    277 //    return UniStrcmp( (UniChar*)arg1,
    278 //                      (UniChar*)arg2 );
     278
     279    if(arg1 == NULL)
     280      return -1;
     281    if(arg2 == NULL)
     282      return 1;
     283
    279284    return wcscmp( (wchar_t*)arg1,
    280285                   (wchar_t*)arg2 );
  • trunk/src/kernel32/makefile

    r1224 r1280  
    1 # $Id: makefile,v 1.43 1999-10-09 15:03:10 sandervl Exp $
     1# $Id: makefile,v 1.44 1999-10-14 09:21:42 sandervl Exp $
    22
    33#
     
    176176    $(PDWIN32_INCLUDE)\versionos2.h \
    177177    $(PDWIN32_INCLUDE)\wprocess.h \
     178    $(PDWIN32_INCLUDE)\win\thread.h \
    178179    console2.h \
    179180    mmap.h \
  • trunk/src/kernel32/winimagepeldr.cpp

    r1192 r1280  
    1 /* $Id: winimagepeldr.cpp,v 1.5 1999-10-08 16:27:48 sandervl Exp $ */
     1/* $Id: winimagepeldr.cpp,v 1.6 1999-10-14 09:21:42 sandervl Exp $ */
    22
    33/*
     
    10681068                    return(FALSE);
    10691069                }
     1070                WinDll->AddRef();
    10701071        }
    10711072        fout << "**********************************************************************" << endl;
  • trunk/src/kernel32/wprocess.cpp

    r1221 r1280  
    1 /* $Id: wprocess.cpp,v 1.36 1999-10-09 13:33:25 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.37 1999-10-14 09:21:43 sandervl Exp $ */
    22
    33/*
     
    307307 Win32DllBase *module;
    308308
     309  module = Win32DllBase::findModule((LPSTR)lpszLibFile);
     310  if(module) {
     311        module->AddRef();
     312        return module->getInstanceHandle();
     313  }
     314
    309315  hDll = O32_LoadLibrary(lpszLibFile);
    310316  dprintf(("KERNEL32:  iLoadLibraryA %s returned %X (%d)\n",
Note: See TracChangeset for help on using the changeset viewer.