Ignore:
Timestamp:
Oct 3, 2000, 7:28:32 PM (25 years ago)
Author:
sandervl
Message:

misc updates + fixes

File:
1 edited

Legend:

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

    r4372 r4407  
    1 /* $Id: wprocess.cpp,v 1.98 2000-10-02 13:38:58 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.99 2000-10-03 17:28:32 sandervl Exp $ */
    22
    33/*
     
    788788                if(pModule->isLxDll())
    789789                {
    790                     ((Win32LxDll *)pModule)->setDllHandleOS2(hDll);
    791                     if (fPeLoader)
    792                         pModule->AddRef();
     790                        ((Win32LxDll *)pModule)->setDllHandleOS2(hDll);
     791                        if(fPeLoader)
     792                        {
     793                                if(pModule->AddRef() == -1) {//-1 -> load failed (attachProcess)
     794                                        dprintf(("Dll %s refused to be loaded; aborting", szModname));
     795                                        delete pModule;
     796                                        return 0;
     797                                }
     798                        }
    793799                }
    794800                pModule->incDynamicLib();
     
    796802            else
    797803                return hDll; //happens when LoadLibrary is called in kernel32's initterm (nor harmful)
     804
    798805            dprintf(("KERNEL32: LoadLibraryExA(%s, 0x%x, 0x%x): returns 0x%x. Loaded %s using O32_LoadLibrary.",
    799806                     lpszLibFile, hFile, dwFlags, hDll, szModname));
     
    902909                SetLastError(ERROR_DLL_INIT_FAILED);
    903910                delete peldrDll;
     911                return NULL;
    904912            }
    905913        }
     
    910918            SetLastError(ERROR_INVALID_EXE_SIGNATURE);
    911919            delete peldrDll;
     920                return NULL;
    912921        }
    913922    }
     
    917926                 lpszLibFile, hFile, dwFlags, szModname, fPE));
    918927        SetLastError(fPE);
     928        return NULL;
    919929    }
    920930
     
    11001110            return ERROR_NOT_ENOUGH_MEMORY;
    11011111        }
    1102 
     1112        strcpy((char *)pszCmdLineA, pszPeExe);
     1113       
    11031114        rc = NO_ERROR;
    11041115    }
Note: See TracChangeset for help on using the changeset viewer.