Ignore:
Timestamp:
Aug 11, 2000, 8:42:55 PM (25 years ago)
Author:
sandervl
Message:

misc fixes

File:
1 edited

Legend:

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

    r3993 r3995  
    1 /* $Id: wprocess.cpp,v 1.86 2000-08-11 10:56:20 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.87 2000-08-11 18:42:55 sandervl Exp $ */
    22
    33/*
     
    431431 BOOL rc;
    432432
     433    //SvL: Ignore FreeLibary for executable
     434    if(WinExe && hinstance == WinExe->getInstanceHandle()) {
     435        return TRUE;
     436    }
     437
    433438    winmod = Win32DllBase::findModule(hinstance);
    434439    if(winmod) {
     
    698703     *  Endif
    699704     */
     705    if(WinExe) {
     706      char  szDllName[CCHMAXPATH];
     707      char *dot;
     708
     709        strcpy(szDllName, OSLibStripPath((char *)lpszLibFile));
     710        strupr(szDllName);
     711        dot = strstr(szDllName, ".");
     712        if(dot)
     713            *dot = 0;
     714
     715        if(!strcmp(szDllName, WinExe->getModuleName())) {
     716                return WinExe->getInstanceHandle();
     717        }
     718    }
    700719    pModule = Win32DllBase::findModule((LPSTR)lpszLibFile);
    701720    if (pModule)
     
    10521071    if(WinExe) {
    10531072        if(WinExe->getCommandLineW())
    1054         return WinExe->getCommandLineW();
     1073             return WinExe->getCommandLineW();
    10551074    }
    10561075    if(asciicmdline == NULL) //not used for converted exes
    1057       asciicmdline = O32_GetCommandLine();
     1076        asciicmdline = O32_GetCommandLine();
    10581077
    10591078    if(asciicmdline) {
Note: See TracChangeset for help on using the changeset viewer.