Changeset 5283 for trunk/src/win32k
- Timestamp:
- Mar 2, 2001, 1:48:41 PM (25 years ago)
- Location:
- trunk/src/win32k
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/clfix.c
r4580 r5283 1 /* $Id: clfix.c,v 1. 2 2000-11-09 20:42:43bird Exp $1 /* $Id: clfix.c,v 1.3 2001-03-02 12:48:41 bird Exp $ 2 2 * 3 3 * A wrapper program for cl.exe fix will try fix some of the problems … … 28 28 { 29 29 static char szArgBuffer[32768]; 30 static char szzEnv[4096]; 31 char * pszEnv = &szzEnv[0]; 30 32 RESULTCODES resc; 31 33 int argi; … … 34 36 APIRET rc; 35 37 36 38 37 39 /* 38 40 * Check that we have cl.exe at least passed in. … … 50 52 } 51 53 54 /* 55 * Blow away extra libpaths. 56 */ 57 DosSetExtLIBPATH("", BEGIN_LIBPATH); 58 DosSetExtLIBPATH("", END_LIBPATH); 59 52 60 53 61 /* … … 59 67 60 68 61 /* The other arguments. */ 69 /* 70 * The other arguments. 71 * The -I arguments are put into the environment variable INCLUDE. 72 */ 73 strcpy(pszEnv, "INCLUDE="); 74 pszEnv += strlen(pszEnv); 62 75 if (argc > 2) 63 76 { … … 65 78 while (argi < argc) 66 79 { 67 strcpy(psz, argv[argi]); 68 psz += strlen(psz); 69 *psz++ = ' '; 70 argi++; 80 if ( (argv[argi][0] == '-' || argv[argi][0] == '/') 81 && (argv[argi][1] == 'I' || argv[argi][1] == 'i')) 82 { 83 strcpy(pszEnv, &argv[argi][2]); 84 pszEnv += strlen(pszEnv); 85 *pszEnv++ = ';'; 86 argi++; 87 } 88 else 89 { 90 strcpy(psz, argv[argi]); 91 psz += strlen(psz); 92 *psz++ = ' '; 93 argi++; 94 } 71 95 } 72 96 psz[-1] = '\0'; … … 74 98 *psz = '\0'; 75 99 100 printf("exe: %s\n", szArgBuffer); 101 printf("arg: %s\n", szArgBuffer + strlen(szArgBuffer)+1); 102 printf("env: %s\n", szzEnv); 76 103 77 104 /* … … 91 118 if (rc) 92 119 printf("clfix: DosDupHandle failed with rc=%d\n\n", rc); 93 120 94 121 95 122 /* … … 99 126 * this will solve the problems. 100 127 */ 101 if (DosExecPgm(NULL, 0, EXEC_SYNC, szArgBuffer, "\0\0", &resc, szArgBuffer) != NO_ERROR)128 if (DosExecPgm(NULL, 0, EXEC_SYNC, szArgBuffer, &szzEnv[0], &resc, szArgBuffer) != NO_ERROR) 102 129 { 103 130 /*complain*/ -
trunk/src/win32k/dev16/d16init.c
r4787 r5283 1 /* $Id: d16init.c,v 1. 9 2000-12-11 06:53:48bird Exp $1 /* $Id: d16init.c,v 1.10 2001-03-02 12:48:41 bird Exp $ 2 2 * 3 3 * d16init - init routines for both drivers. … … 98 98 USHORT usAction = 0; 99 99 NPSZ npszErrMsg = NULL; 100 NPSZnpszErrMsg2 = NULL;100 const char * npszErrMsg2 = NULL; 101 101 102 102 /* … … 132 132 npszErrMsg = "Ring-0 initiation failed. rc=%x\n"; 133 133 if (rc >= ERROR_D32_FIRST && rc <= ERROR_D32_LAST) 134 npszErrMsg2 = GetErrorMsg(data.usRcInit32 + ERROR_PROB_SYM_D32_FIRST - ERROR_D32_FIRST); 134 npszErrMsg2 = 135 GetErrorMsg( 136 data.usRcInit32 137 + ERROR_PROB_SYM_D32_FIRST 138 - ERROR_D32_FIRST 139 ); 135 140 } 136 141 } … … 289 294 return rc; 290 295 } 296 -
trunk/src/win32k/dev16/d16strat.c
r4185 r5283 1 /* $Id: d16strat.c,v 1.1 0 2000-09-04 16:40:48bird Exp $1 /* $Id: d16strat.c,v 1.11 2001-03-02 12:48:41 bird Exp $ 2 2 * 3 3 * d16strat.c - 16-bit strategy routine, device headers, device_helper (ptr) … … 39 39 * Global Variables * 40 40 *******************************************************************************/ 41 extern DDHDR _far aDevHdrs[2]; 41 42 DDHDR aDevHdrs[2] = /* This is the first piece data in the driver!!!!!!! */ 42 43 { 43 44 { 44 (unsigned long)(void _far *)(&aDevHdrs[1]), /* NextHeader */45 &aDevHdrs[1], /* NextHeader */ 45 46 DEVLEV_3 | DEV_30 | DEV_CHAR_DEV, /* SDevAtt */ 46 47 (unsigned short)(void _near *)strategyAsm0, /* StrategyEP */ -
trunk/src/win32k/test/win32ktst.c
r5111 r5283 1 /* $Id: win32ktst.c,v 1. 8 2001-02-11 15:28:10bird Exp $1 /* $Id: win32ktst.c,v 1.9 2001-03-02 12:48:41 bird Exp $ 2 2 * 3 3 * Win32k test module. … … 145 145 * Structures and Typedefs * 146 146 *******************************************************************************/ 147 #if ndef QS_MTE147 #if !defined(QS_MTE) || defined(QS_MODVER) 148 148 /* From OS/2 Toolkit v4.5 (BSEDOS.H) */ 149 149
Note:
See TracChangeset
for help on using the changeset viewer.