Changeset 5782 for trunk/src


Ignore:
Timestamp:
May 22, 2001, 4:25:36 PM (24 years ago)
Author:
sandervl
Message:

Check name before adding dependency for module

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

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

    r5128 r5782  
    1 /* $Id: windllbase.cpp,v 1.24 2001-02-14 10:36:45 sandervl Exp $ */
     1/* $Id: windllbase.cpp,v 1.25 2001-05-22 14:25:34 sandervl Exp $ */
    22
    33/*
     
    252252        //printDependencies(NULL);
    253253#endif
     254
    254255        dprintf(("Win32DllBase::Release %s referenced == 0", getModuleName()));
    255256
     
    414415    }
    415416
    416     dprintf(("attachProcess to dll %s", szModule));
    417 
    418417    // @@@PH 2000/06/13 lpvReserved, Starcraft STORM.DLL
    419418    // if DLL_PROCESS_ATTACH, lpvReserved is NULL for dynamic loads
     
    427426        lpvReserved = (LPVOID)0xdeadface; // some arbitrary value
    428427
     428#ifdef DEBUG
     429    int time1, time2;
     430    dprintf(("attachProcess to dll %s", szModule));
     431    time1 = GetTickCount();
     432#endif
     433
    429434    rc = dllEntryPoint(hinstance, DLL_PROCESS_ATTACH, lpvReserved);
    430435
    431     dprintf(("attachProcess to dll %s DONE", szModule));
     436#ifdef DEBUG
     437    time2 = GetTickCount();
     438    dprintf(("attachProcess to dll %s DONE in %x msec", szModule, time2-time1));
     439#endif
    432440
    433441    if(fSetExceptionHandler) {
  • trunk/src/kernel32/windlllx.cpp

    r5262 r5782  
    1 /* $Id: windlllx.cpp,v 1.18 2001-02-24 12:59:44 sandervl Exp $ */
     1/* $Id: windlllx.cpp,v 1.19 2001-05-22 14:25:36 sandervl Exp $ */
    22
    33/*
     
    123123        modulename[modsize] = 0;
    124124        windlldep = Win32DllBase::findModule(modulename, TRUE);
    125         if(windlldep) {
     125        if(windlldep && strcmp(windlldep->getModuleName(), windll->getModuleName())) {
    126126                dprintf(("RegisterLxDll: Add dependency %s -> %s", windll->getModuleName(), modulename));
    127127                windll->addDependency(windlldep);
    128128        }
    129         else    dprintf(("WARNING: Can't find dll %s referenced by %s", modulename, windll->getModuleName()));
     129        else    dprintf(("HARMLESS WARNING: Can't find dll %s referenced by %s", modulename, windll->getModuleName()));
    130130        offset += modsize + 1;
    131131   }
Note: See TracChangeset for help on using the changeset viewer.