Ignore:
Timestamp:
Sep 28, 2001, 9:43:03 AM (24 years ago)
Author:
sandervl
Message:

added options to strip fixups and to reroute imports to custom odin dll

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/pe2lx/pe2lxmain.cpp

    r5086 r6852  
    1 /* $Id: pe2lxmain.cpp,v 1.7 2001-02-10 11:11:48 bird Exp $
     1/* $Id: pe2lxmain.cpp,v 1.8 2001-09-28 07:43:03 sandervl Exp $
    22 *
    33 * Pe2Lx main program. (Ring 3 only!)
     
    3232#include <string.h>
    3333#include <stdlib.h>
     34#include <io.h>
     35#include <fcntl.h>
     36#include <sys/stat.h>
    3437#include "OS2Krnl.h"
    3538#include "modulebase.h"
     
    125128                    }
    126129                    break;
     130
     131                case 'f': //ignore internal fixups
     132                case 'F':
     133                    options.fSkipFixups = TRUE;
     134                    break;
     135
     136                case 'c':
     137                case 'C': //custom odin dll name
     138                    if(!hasCustomExports()) {
     139                        printf("Syntax error: export table file not specified (/O).\n\n");
     140                        return 5;
     141                    }
     142                    options.pszCustomDll = &argv[argi][3];
     143                    break;
     144                case 'o':
     145                case 'O':
     146                {
     147                    int fileIn = open(&argv[argi][3], O_RDONLY, S_IREAD);
     148                    int sizein = (int)_filelength(fileIn);
     149
     150                    options.pszCustomExports = (PSZ)malloc(sizein+1);
     151                    memset(options.pszCustomExports, 0, sizein+1);
     152                    read(fileIn, options.pszCustomExports, sizein);
     153                    close(fileIn);
     154                    break;
     155                }
    127156
    128157                default:
Note: See TracChangeset for help on using the changeset viewer.