Changeset 6401 for trunk/src


Ignore:
Timestamp:
Jul 29, 2001, 9:02:35 PM (24 years ago)
Author:
sandervl
Message:

custom build updates

Location:
trunk/src
Files:
40 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/comctl32lib.mak

    r6375 r6401  
    1 # $Id: comctl32lib.mak,v 1.1 2001-07-20 15:35:30 sandervl Exp $
     1# $Id: comctl32lib.mak,v 1.2 2001-07-29 19:00:00 sandervl Exp $
    22
    33#
     
    1414EXETARGET = 1
    1515PUBLICLIB = 1
    16 
     16WRC_PREFIX_RESOURCE=1
    1717
    1818#
  • trunk/src/comctl32/initcomctl32.cpp

    r6375 r6401  
    3838extern "C" {
    3939 //Win32 resource table (produced by wrc)
    40  extern DWORD _Resource_PEResTab;
     40 extern DWORD comctl32_PEResTab;
    4141}
    4242
     
    8585   switch (ulFlag) {
    8686      case 0 :
    87          dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab,
     87         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&comctl32_PEResTab,
    8888                                   COMCTL32_MAJORIMAGE_VERSION, COMCTL32_MINORIMAGE_VERSION,
    8989                                   IMAGE_SUBSYSTEM_WINDOWS_GUI);
  • trunk/src/comctl32/makefile

    r6380 r6401  
    1 # $Id: makefile,v 1.34 2001-07-21 09:07:17 sandervl Exp $
     1# $Id: makefile,v 1.35 2001-07-29 19:00:00 sandervl Exp $
    22
    33#
     
    66#       comctl32.dll makefile
    77#
    8 
     8WRC_PREFIX_RESOURCE=1
    99
    1010#
     
    1313!include ../../makefile.inc
    1414
     15#
     16# Overrides.
     17#
    1518
    1619#
  • trunk/src/comdlg32/comdlg32lib.mak

    r6375 r6401  
    1 # $Id: comdlg32lib.mak,v 1.1 2001-07-20 15:36:49 sandervl Exp $
     1# $Id: comdlg32lib.mak,v 1.2 2001-07-29 19:00:13 sandervl Exp $
    22
    33#
     
    1414EXETARGET = 1
    1515PUBLICLIB = 1
    16 
     16WRC_PREFIX_RESOURCE=1
    1717
    1818#
  • trunk/src/comdlg32/initcomdlg32.cpp

    r6375 r6401  
    3838extern "C" {
    3939 //Win32 resource table (produced by wrc)
    40  extern DWORD _Resource_PEResTab;
     40 extern DWORD comdlg32_PEResTab;
    4141
    4242 BOOL WINAPI COMDLG32_DllEntryPoint(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved);
     
    8383   switch (ulFlag) {
    8484      case 0 :
    85          dllHandle = RegisterLxDll(hModule, LibMainComdlg32, (PVOID)&_Resource_PEResTab,
     85         dllHandle = RegisterLxDll(hModule, LibMainComdlg32, (PVOID)&comdlg32_PEResTab,
    8686                                   COMDLG32_MAJORIMAGE_VERSION, COMDLG32_MINORIMAGE_VERSION,
    8787                                   IMAGE_SUBSYSTEM_WINDOWS_GUI);
  • trunk/src/comdlg32/makefile

    r6375 r6401  
    1 # $Id: makefile,v 1.28 2001-07-20 15:36:49 sandervl Exp $
     1# $Id: makefile,v 1.29 2001-07-29 19:00:13 sandervl Exp $
    22
    33#
     
    66#       comdlg32.dll makefile
    77#
    8 
     8WRC_PREFIX_RESOURCE=1
    99
    1010#
  • trunk/src/custombuild/guid.c

    r6374 r6401  
    1 /* $Id: guid.c,v 1.1 2001-07-20 15:41:43 sandervl Exp $ */
     1/* $Id: guid.c,v 1.2 2001-07-29 19:02:35 sandervl Exp $ */
    22#define ICOM_CINTERFACE 1
    33#include <odin.h>
     
    5151    return towupper(*str1) - towupper(*str2);
    5252}
     53
     54/*********************************************************************
     55 *           wcstombs    (NTDLL.@)
     56 */
     57INT __cdecl NTDLL_wcstombs( LPSTR dst, LPCWSTR src, INT n )
     58{
     59    INT ret;
     60    if (n <= 0) return 0;
     61    ret = WideCharToMultiByte( CP_ACP, 0, src, -1, dst, dst ? n : 0, NULL, NULL );
     62    if (!ret) return n;  /* overflow */
     63    return ret - 1;  /* do not count terminating NULL */
     64}
     65
     66/*********************************************************************
     67 *           _wtol    (NTDLL.@)
     68 * Like atol, but for wide character strings.
     69 */
     70LONG __cdecl _wtol(LPWSTR string)
     71{
     72    char buffer[30];
     73    NTDLL_wcstombs( buffer, string, sizeof(buffer) );
     74    return atol( buffer );
     75}
     76
     77/*********************************************************************
     78 *           _wtoi    (NTDLL.@)
     79 */
     80INT __cdecl _wtoi(LPWSTR string)
     81{
     82    return _wtol(string);
     83}
  • trunk/src/custombuild/initterm.cpp

    r6374 r6401  
    3131#include <string.h>
    3232#include <odin.h>
     33#include <win32api.h>
    3334#include <win32type.h>
     35#include <odinapi.h>
    3436#include <winconst.h>
    3537#include <odinlx.h>
     
    3941
    4042BOOL  fVersionWarp3 = FALSE;
     43static HKEY hKeyClassesRoot  = 0;
     44static HKEY hKeyCurrentUser  = 0;
     45static HKEY hKeyLocalMachine = 0;
     46static HKEY hKeyUsers        = 0;
    4147
    4248#ifdef __IBMCPP__
     
    5157static void APIENTRY cleanup(ULONG reason);
    5258}
     59
    5360/****************************************************************************/
    5461/* _DLL_InitTerm is the function that gets called by the operating system   */
     
    100107         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    101108
     109         if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_ClassesRoot",&hKeyClassesRoot)!=ERROR_SUCCESS_W) {
     110             return 0;
     111         }
     112         if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_CurrentUser",&hKeyCurrentUser)!=ERROR_SUCCESS_W) {
     113             return 0;
     114         }
     115         if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_LocalMachine",&hKeyLocalMachine)!=ERROR_SUCCESS_W) {
     116             return 0;
     117         }
     118         if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_Users",&hKeyUsers)!=ERROR_SUCCESS_W) {
     119             return 0;
     120         }
     121         SetRegistryRootKey(HKEY_CLASSES_ROOT, hKeyClassesRoot);
     122         SetRegistryRootKey(HKEY_CURRENT_USER, hKeyCurrentUser);
     123         SetRegistryRootKey(HKEY_LOCAL_MACHINE, hKeyLocalMachine);
     124         SetRegistryRootKey(HKEY_USERS, hKeyUsers);
     125
     126         SetCustomBuildName("KERNEL32.DLL");
    102127         rc = inittermKernel32(hModule, ulFlag);
    103128         if(rc == 0)
    104                 return 0UL;
    105 
     129             return 0UL;
     130
     131         SetCustomBuildName("USER32.DLL");
    106132         rc = inittermUser32(hModule, ulFlag);
    107133         if(rc == 0)
    108134                return 0UL;
    109135
     136         SetCustomBuildName("WSOCK32.DLL");
     137         rc = inittermWsock32(hModule, ulFlag);
     138         if(rc == 0)
     139                return 0UL;
     140
     141         SetCustomBuildName("WINMM.DLL");
    110142         rc = inittermWinmm(hModule, ulFlag);
    111143         if(rc == 0)
    112144                return 0UL;
    113145
     146         SetCustomBuildName("RPCRT4.DLL");
    114147         rc = inittermRpcrt4(hModule, ulFlag);
    115148         if(rc == 0)
    116149                return 0UL;
    117150
     151         SetCustomBuildName("OLE32.DLL");
    118152         rc = inittermOle32(hModule, ulFlag);
    119153         if(rc == 0)
    120154                return 0UL;
    121155
     156         SetCustomBuildName("COMCTL32.DLL");
    122157         rc = inittermComctl32(hModule, ulFlag);
    123158         if(rc == 0)
    124159                return 0UL;
    125160
     161         SetCustomBuildName("SHELL32.DLL");
    126162         rc = inittermShell32(hModule, ulFlag);
    127163         if(rc == 0)
    128164                return 0UL;
    129165
     166         SetCustomBuildName("COMDLG32.DLL");
    130167         rc = inittermComdlg32(hModule, ulFlag);
    131168         if(rc == 0)
    132169                return 0UL;
    133170
     171         SetCustomBuildName(NULL);
    134172         break;
    135173      case 1 :
     
    140178         inittermRpcrt4(hModule, ulFlag);
    141179         inittermWinmm(hModule, ulFlag);
     180         inittermWsock32(hModule, ulFlag);
    142181         inittermUser32(hModule, ulFlag);
    143182         inittermKernel32(hModule, ulFlag);
  • trunk/src/custombuild/xxodin32.def

    r6374 r6401  
    1 ; $Id: xxodin32.def,v 1.1 2001-07-20 15:41:43 sandervl Exp $
     1; $Id: xxodin32.def,v 1.2 2001-07-29 19:02:35 sandervl Exp $
    22
    33LIBRARY XXODIN32 INITINSTANCE
     
    3030    WinXxCreateHeap               = PMMERGE.5425
    3131    WinXxDestroyHeap              = PMMERGE.5426
     32    __SwapMouseButton             = PMMERGE.10019
    3233    LookupAtom                    = PMMERGE.10020
    3334
     
    22372238  DSA_EnumCallback    = _DSA_EnumCallback@12       @7387
    22382239  DSA_DestroyCallback = _DSA_DestroyCallback@12    @7388
    2239                         _COMCTL32_389@8            @7389 NONAME
    2240                         _COMCTL32_390@16           @7390 NONAME
    2241 
    2242                         _comctl32_410@16           @7410 NONAME
    2243                         _comctl32_411@12           @7411 NONAME
    2244                         _comctl32_412@12           @7412 NONAME
    2245                         _comctl32_413@16           @7413 NONAME
    2246                         _COMCTL32_415@20           @7415 NONAME
    2247 
    2248 ; WIMM
     2240;;                        _COMCTL32_389@8            @7389 NONAME
     2241;;                        _COMCTL32_390@16           @7390 NONAME
     2242
     2243;;                        _comctl32_410@16           @7410 NONAME
     2244;;                        _comctl32_411@12           @7411 NONAME
     2245;;                        _comctl32_412@12           @7412 NONAME
     2246;;                        _comctl32_413@16           @7413 NONAME
     2247;;                        _COMCTL32_415@20           @7415 NONAME
     2248
     2249; WINMM
    22492250     PlaySoundA                 = _PlaySoundA@12           @8002
    22502251     CloseDriver                = _CloseDriver@12          @8005
  • trunk/src/gdi32/gdi32lib.mak

    r6375 r6401  
    1 # $Id: gdi32lib.mak,v 1.1 2001-07-20 15:35:57 sandervl Exp $
     1# $Id: gdi32lib.mak,v 1.2 2001-07-29 18:59:41 sandervl Exp $
    22
    33#
     
    1414EXETARGET = 1
    1515PUBLICLIB = 1
    16 
     16WRC_PREFIX_RESOURCE=1
    1717
    1818#
  • trunk/src/gdi32/initgdi32.cpp

    r6397 r6401  
    4141extern "C" {
    4242 //Win32 resource table (produced by wrc)
    43  extern DWORD _Resource_PEResTab;
     43 extern DWORD gdi32_PEResTab;
    4444}
    4545static HMODULE dllHandle = 0;
     
    9090                return 0UL;
    9191         }
    92          dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&_Resource_PEResTab,
     92         dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&gdi32_PEResTab,
    9393                                   GDI32_MAJORIMAGE_VERSION, GDI32_MINORIMAGE_VERSION,
    9494                                   IMAGE_SUBSYSTEM_NATIVE);
  • trunk/src/gdi32/makefile

    r6375 r6401  
    1 # $Id: makefile,v 1.37 2001-07-20 15:35:57 sandervl Exp $
     1# $Id: makefile,v 1.38 2001-07-29 18:59:41 sandervl Exp $
    22
    33#
     
    66#       gdi32.dll makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
     
    1718# Overrides.
    1819#
     20!ifndef WAT
    1921CDEFINES    = $(CDEFINES) -DINVERT
    20 
     22!else
     23CDEFINES   += -DINVERT
     24!endif
    2125
    2226#
     
    6771TARGET = gdi32
    6872
    69 
    7073#
    7174# Includes the common rules.
  • trunk/src/kernel32/KERNEL32.DEF

    r6397 r6401  
    1 ; $Id: KERNEL32.DEF,v 1.117 2001-07-28 18:03:36 sandervl Exp $
     1; $Id: KERNEL32.DEF,v 1.118 2001-07-29 19:00:30 sandervl Exp $
    22
    33;Basis is Windows95 KERNEL32
     
    11821182    _DestroyTIB@0                                                 @2011 NONAME
    11831183    _GetProcessTIBSel@0                                           @2012 NONAME
     1184   
     1185    _SetRegistryRootKey@8                                         @2013 NONAME
     1186    _SetCustomBuildName@4                                         @2014 NONAME
    11841187
    11851188    strcmpiW                                                      @2020 NONAME
  • trunk/src/kernel32/initkernel32.cpp

    r6399 r6401  
    6262extern "C" {
    6363 //Win32 resource table (produced by wrc)
    64  extern DWORD _Resource_PEResTab;
     64 extern DWORD kernel32_PEResTab;
    6565}
    6666
     
    139139
    140140            PROFILE_LoadOdinIni();
    141             dllHandle = RegisterLxDll(hModule, 0, (PVOID)&_Resource_PEResTab);
     141            dllHandle = RegisterLxDll(hModule, 0, (PVOID)&kernel32_PEResTab);
    142142            if (dllHandle == 0)
    143143                return 0UL;
     
    241241    HMODULE hModule;
    242242
    243 //    DosQueryModuleHandle("WGSS50", &hModule);
    244 //    O32__DLL_InitTerm(hModule, 0);
     243    DosQueryModuleHandle("WGSS50", &hModule);
     244    O32__DLL_InitTerm(hModule, 0);
    245245    DosQueryModuleHandle("KERNEL32", &hModule);
    246246    return inittermKernel32(hModule, 0);
  • trunk/src/kernel32/kernel32.mak

    r6375 r6401  
    1 # $Id: kernel32.mak,v 1.8 2001-07-20 15:33:30 sandervl Exp $
     1# $Id: kernel32.mak,v 1.9 2001-07-29 19:00:31 sandervl Exp $
    22
    33#
     
    66#       kernel32.dll makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910#
     
    2021# Overrides.
    2122#
    22 ##CDEFINES    = $(CDEFINES) -DTEST_BUILTIN
     23#
     24# Overrides.
     25#
     26!ifndef WAT
     27RCFLAGS     = $(RCFLAGS) -p $(TARGET)
     28!else
     29RCFLAGS    += -p $(TARGET)
     30!endif
    2331
    2432
     
    139147LIBS = \
    140148$(ODIN32_LIB)/$(ODINCRT).lib \
    141 ##$(ODIN32_LIB)\wgss.lib \
    142 $(ODIN32_LIB)\PMWINX.LIB \
     149$(ODIN32_LIB)\wgss50.LIB \
    143150$(ODIN32_LIB)\LIBULS.LIB \
    144151$(ODIN32_LIB)\LIBCONV.LIB \
  • trunk/src/kernel32/kernel32lib.mak

    r6375 r6401  
    1 # $Id: kernel32lib.mak,v 1.1 2001-07-20 15:33:30 sandervl Exp $
     1# $Id: kernel32lib.mak,v 1.2 2001-07-29 19:00:31 sandervl Exp $
    22
    33#
     
    1414EXETARGET = 1
    1515PUBLICLIB = 1
    16 
     16WRC_PREFIX_RESOURCE=1
    1717
    1818#
  • trunk/src/kernel32/registry.cpp

    r6346 r6401  
    1 /* $Id: registry.cpp,v 1.11 2001-07-16 09:25:16 sandervl Exp $ */
     1/* $Id: registry.cpp,v 1.12 2001-07-29 19:00:31 sandervl Exp $ */
    22
    33/*
     
    5050
    5151
     52static HKEY hKeyClassesRoot  = HKEY_CLASSES_ROOT_O32;
     53static HKEY hKeyCurrentUser  = HKEY_CURRENT_USER_O32;
     54static HKEY hKeyLocalMachine = HKEY_LOCAL_MACHINE_O32;
     55static HKEY hKeyUsers        = HKEY_USERS_O32;
     56
    5257/*****************************************************************************
    5358 * Name      : Convert Key
     
    6469static HKEY ConvertKey(HKEY winkey)
    6570{
    66   switch((int)winkey)
     71  switch((DWORD)winkey)
    6772  {
    68     case HKEY_CLASSES_ROOT:   return HKEY_CLASSES_ROOT_O32;
    69     case HKEY_CURRENT_USER:   return HKEY_CURRENT_USER_O32;
    70     case HKEY_LOCAL_MACHINE:  return HKEY_LOCAL_MACHINE_O32;
    71     case HKEY_USERS:          return HKEY_USERS_O32;
     73    case HKEY_CLASSES_ROOT:   return hKeyClassesRoot;
     74    case HKEY_CURRENT_USER:   return hKeyCurrentUser;
     75    case HKEY_LOCAL_MACHINE:  return hKeyLocalMachine;
     76    case HKEY_USERS:          return hKeyUsers;
    7277  }
    7378  return(winkey);
    7479}
    7580
     81void WIN32API SetRegistryRootKey(HKEY hRootkey, HKEY hKey)
     82{
     83  switch((DWORD)hRootkey)
     84  {
     85    case HKEY_CLASSES_ROOT:   
     86        hKeyClassesRoot = hKey;
     87        break;
     88    case HKEY_CURRENT_USER:
     89        hKeyCurrentUser = hKey;
     90        break;
     91    case HKEY_LOCAL_MACHINE:
     92        hKeyLocalMachine = hKey;
     93        break;
     94    case HKEY_USERS:
     95        hKeyUsers = hKey;
     96        break;
     97  }
     98}
    7699
    77100/*****************************************************************************
  • trunk/src/kernel32/windlllx.cpp

    r6015 r6401  
    1 /* $Id: windlllx.cpp,v 1.20 2001-06-15 09:42:48 bird Exp $ */
     1/* $Id: windlllx.cpp,v 1.21 2001-07-29 19:00:32 sandervl Exp $ */
    22
    33/*
     
    4040#include "dbglocal.h"
    4141
     42char *lpszCustomDllName = NULL;
     43
     44//******************************************************************************
     45//******************************************************************************
     46void WIN32API SetCustomBuildName(char *lpszName)
     47{
     48    lpszCustomDllName = lpszName;
     49}
    4250//******************************************************************************
    4351//Create LX Dll object and send process attach message
     
    6573 char          szFileName[CCHMAXPATH], szErrName[CCHMAXPATH];
    6674
    67    if(OSLibGetDllName(hInstance, szFileName, sizeof(szFileName)) == FALSE) {
    68     dprintf(("ERROR: RegisterLxDll: OSLibGetDllName %x failed!!", hInstance));
    69     return 0;
    70    }
    71    dprintf(("RegisterLxDll %x %s", hInstance, szFileName));
    72    //Make sure DosLoadModule is called at least once for a dll (to make sure
    73    //OS/2 doesn't unload the dll when it's still needed)
    74    rc = DosLoadModule(szErrName, sizeof(szErrName), szFileName, &hInstance);
    75    if(rc != 0) {
    76     dprintf(("ERROR: RegisterLxDll: DosLoadModule %s failed (rc=%d)!!", szFileName, rc));
    77     return 0;
    78    }
    79 
     75   if(!lpszCustomDllName) {
     76       if(OSLibGetDllName(hInstance, szFileName, sizeof(szFileName)) == FALSE) {
     77           dprintf(("ERROR: RegisterLxDll: OSLibGetDllName %x failed!!", hInstance));
     78           return 0;
     79       }
     80       dprintf(("RegisterLxDll %x %s", hInstance, szFileName));
     81       //Make sure DosLoadModule is called at least once for a dll (to make sure
     82       //OS/2 doesn't unload the dll when it's still needed)
     83       rc = DosLoadModule(szErrName, sizeof(szErrName), szFileName, &hInstance);
     84       if(rc != 0) {
     85           dprintf(("ERROR: RegisterLxDll: DosLoadModule %s failed (rc=%d)!!", szFileName, rc));
     86           return 0;
     87       }
     88   }
    8089   windll = new Win32LxDll(hInstance, EntryPoint, pResData, MajorImageVersion,
    8190                           MinorImageVersion, Subsystem);
    8291   if(windll == NULL) {
    83     dprintf(("RegisterLxDll: windll == NULL!!!"));
    84     return 0;
     92       dprintf(("RegisterLxDll: windll == NULL!!!"));
     93       return 0;
    8594   }
    8695   if(!fPeLoader) {
    87     windll->AddRef();
    88 
    89     if(windll->attachProcess() == 0)
    90         return 0;
    91 
    92     return windll->getInstanceHandle();
     96       windll->AddRef();
     97
     98       if(windll->attachProcess() == 0)
     99           return 0;
     100
     101       return windll->getInstanceHandle();
    93102   }
    94103   IMAGE_DOS_HEADER doshdr;
     
    105114   rc = DosQueryHeaderInfo(hInstance, 0, &doshdr, sizeof(IMAGE_DOS_HEADER), QHINF_READFILE);
    106115   if(rc) {
    107     goto hdrerror;
     116       goto hdrerror;
    108117   }
    109118   rc = DosQueryHeaderInfo(hInstance, doshdr.e_lfanew, &lxhdr, sizeof(e32_exe), QHINF_READFILE);
    110119   if(rc) {
    111     goto hdrerror;
     120       goto hdrerror;
    112121   }
    113122   offset = doshdr.e_lfanew + lxhdr.e32_impmod;
    114123   for(i=0;i<lxhdr.e32_impmodcnt;i++) {
    115     rc = DosQueryHeaderInfo(hInstance, offset, &modsize, 1, QHINF_READFILE);
    116     if(rc) {
    117         goto hdrerror;
    118     }
    119     rc = DosQueryHeaderInfo(hInstance, offset+1, &modulename, min(modsize, sizeof(modulename)), QHINF_READFILE);
    120     if(rc) {
    121         goto hdrerror;
    122     }
    123     modulename[modsize] = 0;
    124     windlldep = Win32DllBase::findModule(modulename, TRUE);
    125     if(windlldep && strcmp(windlldep->getModuleName(), windll->getModuleName())) {
    126         dprintf(("RegisterLxDll: Add dependency %s -> %s", windll->getModuleName(), modulename));
    127         windll->addDependency(windlldep);
    128     }
    129         else    dprintf(("HARMLESS WARNING: Can't find dll %s referenced by %s", modulename, windll->getModuleName()));
    130     offset += modsize + 1;
     124       rc = DosQueryHeaderInfo(hInstance, offset, &modsize, 1, QHINF_READFILE);
     125       if(rc) {
     126           goto hdrerror;
     127       }
     128       rc = DosQueryHeaderInfo(hInstance, offset+1, &modulename, min(modsize, sizeof(modulename)), QHINF_READFILE);
     129       if(rc) {
     130           goto hdrerror;
     131       }
     132       modulename[modsize] = 0;
     133       windlldep = Win32DllBase::findModule(modulename, TRUE);
     134       if(windlldep && strcmp(windlldep->getModuleName(), windll->getModuleName())) {
     135            dprintf(("RegisterLxDll: Add dependency %s -> %s", windll->getModuleName(), modulename));
     136            windll->addDependency(windlldep);
     137       }
     138       else dprintf(("HARMLESS WARNING: Can't find dll %s referenced by %s", modulename, windll->getModuleName()));
     139
     140       offset += modsize + 1;
    131141   }
    132142   return windll->getInstanceHandle();
  • trunk/src/kernel32/winimagelx.cpp

    r3993 r6401  
    1 /* $Id: winimagelx.cpp,v 1.9 2000-08-11 10:56:19 sandervl Exp $ */
     1/* $Id: winimagelx.cpp,v 1.10 2001-07-29 19:00:32 sandervl Exp $ */
    22
    33/*
     
    4242#include "dbglocal.h"
    4343
     44extern char *lpszCustomDllName; //windlllx.cpp
     45
    4446static BYTE dosHeader[] = {
    4547 0x4D, 0x5A, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x0B, 0x00,
     
    6668{
    6769 APIRET rc;
     70 char  *name;
    6871
    6972  szFileName[0] = 0;
    7073
    71   char *name = OSLibGetDllName(hinstance);
     74  if(lpszCustomDllName) {
     75       name = lpszCustomDllName;
     76  }
     77  else name = OSLibGetDllName(hinstance);
     78
    7279  strcpy(szFileName, name);
    7380  strupr(szFileName);
  • trunk/src/msvfw32/msvfw32lib.mak

    r6375 r6401  
    1 # $Id: msvfw32lib.mak,v 1.1 2001-07-20 15:36:29 sandervl Exp $
     1# $Id: msvfw32lib.mak,v 1.2 2001-07-29 18:59:14 sandervl Exp $
    22
    33#
     
    3333OBJS = \
    3434$(OBJDIR)\msvfw32.obj \
     35$(OBJDIR)\drawdib.obj \
     36$(OBJDIR)\msvideo_main.obj \
    3537$(OBJDIR)\msvfw32rsrc.obj \
    3638
  • trunk/src/ole32/initole32.cpp

    r6375 r6401  
    3838extern "C" {
    3939 //Win32 resource table (produced by wrc)
    40  extern DWORD _Resource_PEResTab;
     40 extern DWORD ole32os2_PEResTab;
    4141}
    4242static HMODULE dllHandle = 0;
     
    8282      case 0 :
    8383      {
    84          dllHandle = RegisterLxDll(hModule, LibMainOLE32, (PVOID)&_Resource_PEResTab);
     84         dllHandle = RegisterLxDll(hModule, LibMainOLE32, (PVOID)&ole32os2_PEResTab);
    8585         if(dllHandle == 0)
    8686                return 0UL;
  • trunk/src/ole32/ole32.mak

    r6375 r6401  
    1 # $Id: ole32.mak,v 1.12 2001-07-20 15:38:24 sandervl Exp $
     1# $Id: ole32.mak,v 1.13 2001-07-29 19:01:40 sandervl Exp $
    22
    33#
     
    66#       ole32.dll makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910#
  • trunk/src/ole32/ole32lib.mak

    r6375 r6401  
    1 # $Id: ole32lib.mak,v 1.1 2001-07-20 15:38:24 sandervl Exp $
     1# $Id: ole32lib.mak,v 1.2 2001-07-29 19:01:40 sandervl Exp $
    22
    33#
     
    66#       common.lib makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
  • trunk/src/rpcrt4/initrpcrt4.cpp

    r6375 r6401  
    3939extern "C" {
    4040 //Win32 resource table (produced by wrc)
    41  extern DWORD _Resource_PEResTab;
     41 extern DWORD rpcrt4_PEResTab;
    4242}
    4343static HMODULE dllHandle = 0;
     
    6464   switch (ulFlag) {
    6565      case 0 :
    66          dllHandle = RegisterLxDll(hModule, NULL, (PVOID)&_Resource_PEResTab);
     66         dllHandle = RegisterLxDll(hModule, NULL, (PVOID)&rpcrt4_PEResTab);
    6767         if(dllHandle == 0)
    6868                return 0UL;
  • trunk/src/rpcrt4/makefile

    r6375 r6401  
    1 # $Id: makefile,v 1.6 2001-07-20 15:38:52 sandervl Exp $
     1# $Id: makefile,v 1.7 2001-07-29 19:01:28 sandervl Exp $
    22
    33#
     
    66#       rpcrt4.dll makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
  • trunk/src/rpcrt4/rpcrt4lib.mak

    r6375 r6401  
    1 # $Id: rpcrt4lib.mak,v 1.1 2001-07-20 15:38:52 sandervl Exp $
     1# $Id: rpcrt4lib.mak,v 1.2 2001-07-29 19:01:28 sandervl Exp $
    22
    33#
     
    66#       common.lib makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
  • trunk/src/shell32/initshell32.cpp

    r6375 r6401  
    3838extern "C" {
    3939 //Win32 resource table (produced by wrc)
    40  extern DWORD _Resource_PEResTab;
     40 extern DWORD shell32_PEResTab;
    4141}
    4242static HMODULE dllHandle = 0;
     
    8888         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    8989
    90          dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&_Resource_PEResTab,
     90         dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&shell32_PEResTab,
    9191                                   SHELL32_MAJORIMAGE_VERSION, SHELL32_MINORIMAGE_VERSION,
    9292                                   IMAGE_SUBSYSTEM_WINDOWS_GUI);
  • trunk/src/shell32/makefile

    r6375 r6401  
    1 # $Id: makefile,v 1.34 2001-07-20 15:37:22 sandervl Exp $
     1# $Id: makefile,v 1.35 2001-07-29 19:01:06 sandervl Exp $
    22
    33#
     
    66#       shell32.dll makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
  • trunk/src/shell32/shell32lib.mak

    r6375 r6401  
    1 # $Id: shell32lib.mak,v 1.1 2001-07-20 15:37:22 sandervl Exp $
     1# $Id: shell32lib.mak,v 1.2 2001-07-29 19:01:06 sandervl Exp $
    22
    33#
     
    66#       common.lib makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
  • trunk/src/user32/Makefile

    r6375 r6401  
    1 # $Id: Makefile,v 1.88 2001-07-20 15:34:15 sandervl Exp $
     1# $Id: Makefile,v 1.89 2001-07-29 18:59:26 sandervl Exp $
    22
    33#
     
    66#       user32.dll makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
  • trunk/src/user32/inituser32.cpp

    r6397 r6401  
    5959extern "C" {
    6060 //Win32 resource table (produced by wrc)
    61  extern DWORD _Resource_PEResTab;
     61 extern DWORD user32_PEResTab;
    6262}
    6363DWORD hInstanceUser32 = 0;
     
    8989         InitializeKernel32();
    9090
    91          hInstanceUser32 = RegisterLxDll(hModule, 0, (PVOID)&_Resource_PEResTab,
     91         hInstanceUser32 = RegisterLxDll(hModule, 0, (PVOID)&user32_PEResTab,
    9292                                         USER32_MAJORIMAGE_VERSION, USER32_MINORIMAGE_VERSION,
    9393                                         IMAGE_SUBSYSTEM_WINDOWS_GUI);
  • trunk/src/user32/oslibwin.cpp

    r6395 r6401  
    1 /* $Id: oslibwin.cpp,v 1.107 2001-07-28 13:43:53 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.108 2001-07-29 18:59:27 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    257257}
    258258//******************************************************************************
    259 //******************************************************************************
    260 APIRET OSLibDosBeep(ULONG freg,ULONG dur)
    261 {
    262     return DosBeep(freg,dur);
    263 }
    264 //******************************************************************************
    265 //******************************************************************************
    266259HWND OSLibWinQueryFocus(HWND hwndDeskTop)
    267260{
  • trunk/src/user32/user32.cpp

    r6397 r6401  
    1 /* $Id: user32.cpp,v 1.110 2001-07-28 18:02:50 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.111 2001-07-29 18:59:27 sandervl Exp $ */
    22
    33/*
     
    376376    {
    377377      case 0xFFFFFFFF:
    378         OSLibDosBeep(500,50);
     378        Beep(500,50);
    379379        return TRUE;
    380380      case MB_ICONASTERISK:
  • trunk/src/user32/user32lib.mak

    r6375 r6401  
    1 # $Id: user32lib.mak,v 1.1 2001-07-20 15:34:17 sandervl Exp $
     1# $Id: user32lib.mak,v 1.2 2001-07-29 18:59:28 sandervl Exp $
    22
    33#
     
    66#       common.lib makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
  • trunk/src/winmm/initwinmm.cpp

    r6375 r6401  
    5454
    5555 //Win32 resource table (produced by wrc)
    56  extern DWORD _Resource_PEResTab;
     56 extern DWORD winmm_PEResTab;
    5757}
    5858static HMODULE dllHandle = 0;
     
    120120        ParseLogStatusWINMM();
    121121
    122         dllHandle = RegisterLxDll(hModule, LibMainWinmm, (PVOID)&_Resource_PEResTab);
     122        dllHandle = RegisterLxDll(hModule, LibMainWinmm, (PVOID)&winmm_PEResTab);
    123123        if(dllHandle == 0)
    124124            return 0UL;/* Error */
  • trunk/src/winmm/winmm.mak

    r6375 r6401  
    1 # $Id: winmm.mak,v 1.4 2001-07-20 15:35:01 sandervl Exp $
     1# $Id: winmm.mak,v 1.5 2001-07-29 19:00:53 sandervl Exp $
    22
    33#
     
    66#       winmm.dll makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
  • trunk/src/winmm/winmmlib.mak

    r6375 r6401  
    1 # $Id: winmmlib.mak,v 1.1 2001-07-20 15:35:01 sandervl Exp $
     1# $Id: winmmlib.mak,v 1.2 2001-07-29 19:00:53 sandervl Exp $
    22
    33#
     
    1414EXETARGET = 1
    1515PUBLICLIB = 1
     16WRC_PREFIX_RESOURCE=1
    1617
    1718
  • trunk/src/wsock32/initwsock32.cpp

    r6375 r6401  
    4141extern "C" {
    4242 //Win32 resource table (produced by wrc)
    43  extern DWORD _Resource_PEResTab;
     43 extern DWORD wsock32_PEResTab;
    4444}
    4545static HMODULE dllHandle = 0;
     
    6868         ParseLogStatusWSOCK32();
    6969
    70          dllHandle = RegisterLxDll(hModule, NULL, (PVOID)&_Resource_PEResTab);
     70         dllHandle = RegisterLxDll(hModule, NULL, (PVOID)&wsock32_PEResTab);
    7171         if(dllHandle == 0)
    7272                return 0UL;
  • trunk/src/wsock32/makefile

    r6375 r6401  
    1 # $Id: makefile,v 1.31 2001-07-20 15:41:05 sandervl Exp $
     1# $Id: makefile,v 1.32 2001-07-29 19:01:56 sandervl Exp $
    22
    33#
     
    66#       wsock32.dll makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
  • trunk/src/wsock32/wsock32lib.mak

    r6375 r6401  
    1 # $Id: wsock32lib.mak,v 1.1 2001-07-20 15:41:05 sandervl Exp $
     1# $Id: wsock32lib.mak,v 1.2 2001-07-29 19:02:14 sandervl Exp $
    22
    33#
     
    66#       common.lib makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
Note: See TracChangeset for help on using the changeset viewer.