Ignore:
Timestamp:
Oct 18, 2000, 7:09:34 PM (25 years ago)
Author:
sandervl
Message:

LoadLibraryExA + memory map close fix, added new registry keys for installation, don't log guard page violation

File:
1 edited

Legend:

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

    r4486 r4496  
    1 /* $Id: wprocess.cpp,v 1.104 2000-10-16 11:05:15 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.105 2000-10-18 17:09:34 sandervl Exp $ */
    22
    33/*
     
    792792     *  Endif
    793793     */
    794     //only call Open32 if dwFlags == 0 and (LX binary or win32k process)
    795     if(dwFlags == 0 && (!fPeLoader || fPE != ERROR_SUCCESS))
     794    //only call Open32 if LX binary or win32k process
     795    if(!fPeLoader || fPE != ERROR_SUCCESS)
    796796    {
    797797        hDll = O32_LoadLibrary(szModname);
     
    806806                        ((Win32LxDll *)pModule)->setDllHandleOS2(hDll);
    807807                        if(fPeLoader)
    808             {
     808                        {
    809809                            if(pModule->AddRef() == -1) {//-1 -> load failed (attachProcess)
    810                     dprintf(("Dll %s refused to be loaded; aborting", szModname));
    811                     delete pModule;
    812                     return 0;
    813                 }
     810                                dprintf(("Dll %s refused to be loaded; aborting", szModname));
     811                                delete pModule;
     812                                return 0;
     813                            }
    814814                        }
    815815                }
     
    924924                SetLastError(ERROR_DLL_INIT_FAILED);
    925925                delete peldrDll;
    926         return NULL;
     926                return NULL;
    927927            }
    928928        }
     
    933933            SetLastError(ERROR_INVALID_EXE_SIGNATURE);
    934934            delete peldrDll;
    935         return NULL;
     935            return NULL;
    936936        }
    937937    }
     
    941941                 lpszLibFile, hFile, dwFlags, szModname, fPE));
    942942        SetLastError(fPE);
    943     return NULL;
     943        return NULL;
    944944    }
    945945
Note: See TracChangeset for help on using the changeset viewer.