Changeset 4279 for trunk/src/kernel32/virtual.cpp
- Timestamp:
- Sep 18, 2000, 9:26:16 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/virtual.cpp
r4197 r4279 1 /* $Id: virtual.cpp,v 1.3 3 2000-09-05 20:35:40sandervl Exp $ */1 /* $Id: virtual.cpp,v 1.34 2000-09-18 19:26:16 sandervl Exp $ */ 2 2 3 3 /* … … 272 272 ULONG flag = 0, base; 273 273 DWORD rc; 274 275 SetLastError(ERROR_SUCCESS); 274 276 275 277 if (cbSize > 0x7fc00000) /* 2Gb - 4Mb */ … … 421 423 DWORD rc; 422 424 425 SetLastError(ERROR_SUCCESS); 426 423 427 // verify parameters 424 428 if ( (FreeType & MEM_RELEASE) && (cbSize != 0) ) … … 486 490 int npages; 487 491 488 if(pfdwOldProtect == NULL) 492 if(pfdwOldProtect == NULL) { 493 dprintf(("WARNING: pfdwOldProtect == NULL")); 494 SetLastError(ERROR_INVALID_PARAMETER); 489 495 return(FALSE); 496 } 497 498 SetLastError(ERROR_SUCCESS); 490 499 491 500 rc = OSLibDosQueryMem(lpvAddress, &cb, &pageFlags); … … 561 570 LPVOID lpBase; 562 571 572 SetLastError(ERROR_SUCCESS); 573 563 574 if(pmbiBuffer == NULL || cbLength != sizeof(MEMORY_BASIC_INFORMATION)) // check parameters 564 575 { 576 dprintf(("WARNING: invalid parameter")); 565 577 SetLastError(ERROR_INVALID_PARAMETER); 566 578 return 0; // nothing to return 567 579 } 568 SetLastError(ERROR_SUCCESS);569 580 570 581 // determine exact page range … … 647 658 { 648 659 dprintf(("VirtualLock at %d; %d bytes - stub (TRUE)\n", (int)lpAddress, dwSize)); 660 SetLastError(ERROR_SUCCESS); 649 661 return TRUE; 650 662 } … … 655 667 { 656 668 dprintf(("VirtualUnlock at %d; %d bytes - stub (TRUE)\n", (int)lpAddress, dwSize)); 669 SetLastError(ERROR_SUCCESS); 657 670 return TRUE; 658 671 }
Note:
See TracChangeset
for help on using the changeset viewer.