Changeset 6852 for trunk/src/win32k/pe2lx/pe2lxmain.cpp
- Timestamp:
- Sep 28, 2001, 9:43:03 AM (24 years ago)
- 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 birdExp $1 /* $Id: pe2lxmain.cpp,v 1.8 2001-09-28 07:43:03 sandervl Exp $ 2 2 * 3 3 * Pe2Lx main program. (Ring 3 only!) … … 32 32 #include <string.h> 33 33 #include <stdlib.h> 34 #include <io.h> 35 #include <fcntl.h> 36 #include <sys/stat.h> 34 37 #include "OS2Krnl.h" 35 38 #include "modulebase.h" … … 125 128 } 126 129 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 } 127 156 128 157 default:
Note:
See TracChangeset
for help on using the changeset viewer.