Ignore:
Timestamp:
Oct 30, 2000, 5:38:54 PM (25 years ago)
Author:
sandervl
Message:

Forgot to append .dll if no extension is found in Win32DllBase::findModule

File:
1 edited

Legend:

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

    r4526 r4545  
    1 /* $Id: windllbase.cpp,v 1.20 2000-10-25 19:47:00 sandervl Exp $ */
     1/* $Id: windllbase.cpp,v 1.21 2000-10-30 16:38:54 sandervl Exp $ */
    22
    33/*
     
    732732        renameDll(szDllName, FALSE);
    733733    }
     734    dot = strstr(szDllName, ".");
     735    if(dot == NULL) {
     736        //if there's no extension or trainling dot, we
     737        //assume it's a dll (see Win32 SDK docs)
     738        strcat(szDllName, DLL_EXTENSION);
     739    }
     740    else {
     741        if(dot[1] == 0) {
     742            //a trailing dot means the module has no extension (SDK docs)
     743            *dot = 0;
     744        }
     745    }
    734746
    735747    dlllistmutex.enter();
Note: See TracChangeset for help on using the changeset viewer.