Changeset 5224 for trunk/src/win32k/dev32/d32init.c
- Timestamp:
- Feb 21, 2001, 8:47:59 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/dev32/d32init.c
r5202 r5224 1 /* $Id: d32init.c,v 1.3 6 2001-02-20 04:58:33bird Exp $1 /* $Id: d32init.c,v 1.37 2001-02-21 07:44:57 bird Exp $ 2 2 * 3 3 * d32init.c - 32-bits init routines. … … 175 175 case 'E':/* Elf or EXe */ 176 176 pszTmp2 = strpbrk(pszTmp, ":=/- "); 177 if (pszTmp[1] != 'x' && pszTmp != 'X')177 if (pszTmp[1] != 'x' && pszTmp[1] != 'X') 178 178 { 179 179 options.fElf = !(pszTmp2 != NULL … … 414 414 #endif 415 415 416 /* callgate */ 417 if ((rc = InitCallGate()) != NO_ERROR) 418 { 419 kprintf(("R0Init32: InitCallGate failed with rc=%d\n", rc)); 420 return (USHORT)rc; 421 } 422 416 423 417 424 /* … … 436 443 kprintf(("data segment lock failed with with rc=%d\n", rc)); 437 444 438 /* 16-bit data segment - is this really necessary? */ 445 /* 16-bit data segment - is this really necessary? - no!!! */ 446 #if 0 /* This should not be necessary!!! it's allocated from the kernel resident heap if I am not much mistaken. */ 439 447 memset(SSToDS(&lockhandle), 0, sizeof(lockhandle)); 440 448 rc = D32Hlp_VMLock2(&DATA16START, … … 444 452 if (rc != NO_ERROR) 445 453 kprintf(("16-bit data segment lock failed with with rc=%d\n", rc)); 454 #endif 446 455 447 456 return NO_ERROR; … … 592 601 if ((*psz >= 'A' && *psz <= 'E') || (*psz >= 'a' && *psz <= 'e')) 593 602 { 594 pKrnlInfo->fKernel = ( *psz - (*psz >= 'a' ? 'a'-1 : 'A'-1)) << KF_REV_SHIFT;603 pKrnlInfo->fKernel = (USHORT)((*psz - (*psz >= 'a' ? 'a'-1 : 'A'-1)) << KF_REV_SHIFT); 595 604 psz++; 596 605 } … … 904 913 /* fixed five byte instructions */ 905 914 case 0xe8: /* call imm32 */ 906 pach =+4;907 cb =+4;915 pach += 4; 916 cb += 4; 908 917 break; 909 918 … … 1273 1282 int cbmax; 1274 1283 char * pchCTEntry; /* Pointer to current calltab entry. */ 1284 ULONG flWP; /* CR0 WP flag restore value. */ 1275 1285 1276 1286 /* … … 1327 1337 */ 1328 1338 pchCTEntry = &callTab[0]; 1339 flWP = x86DisableWriteProtect(); 1329 1340 for (i = 0; i < NBR_OF_KRNLIMPORTS; i++) 1330 1341 { … … 1366 1377 kprintf(("ImportTabInit: FATAL verify failed for procedure no.%d when rehooking it!\n", i)); 1367 1378 Int3(); /* ipe - later! */ 1379 x86RestoreWriteProtect(flWP); 1368 1380 return ERROR_D32_IPE | (i << ERROR_D32_PROC_SHIFT) | ERROR_D32_PROC_FLAG; 1369 1381 } … … 1412 1424 kprintf(("ImportTabInit: FATAL verify failed for procedure no.%d when rehooking it!\n", i)); 1413 1425 Int3(); /* ipe - later! */ 1426 x86RestoreWriteProtect(flWP); 1414 1427 return ERROR_D32_IPE | (i << ERROR_D32_PROC_SHIFT) | ERROR_D32_PROC_FLAG; 1415 1428 } … … 1444 1457 kprintf(("ImportTabInit: FATAL verify failed for procedure no.%d when importing it!\n", i)); 1445 1458 Int3(); /* ipe - later! */ 1459 x86RestoreWriteProtect(flWP); 1446 1460 return ERROR_D32_IPE | (i << ERROR_D32_PROC_SHIFT) | ERROR_D32_PROC_FLAG; 1447 1461 } … … 1480 1494 kprintf(("ImportTabInit: FATAL verify failed for procedure no.%d when importing it!\n", i)); 1481 1495 Int3(); /* ipe - later! */ 1496 x86RestoreWriteProtect(flWP); 1482 1497 return ERROR_D32_IPE | (i << ERROR_D32_PROC_SHIFT) | ERROR_D32_PROC_FLAG; 1483 1498 } … … 1517 1532 kprintf(("ImportTabInit: unsupported type. (procedure no.%d, cb=%d)\n", i, cb)); 1518 1533 Int3(); /* ipe - later! */ 1534 x86RestoreWriteProtect(flWP); 1519 1535 return ERROR_D32_IPE | (i << ERROR_D32_PROC_SHIFT) | ERROR_D32_PROC_FLAG; 1520 1536 } /* switch - type */ 1521 1537 } /* for */ 1538 1539 x86RestoreWriteProtect(flWP); 1522 1540 1523 1541 return NO_ERROR;
Note:
See TracChangeset
for help on using the changeset viewer.