Changeset 4777 in vbox for trunk/src/VBox/Additions/WINNT/VBoxGuest
- Timestamp:
- Sep 13, 2007 3:39:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp
r4686 r4777 34 34 #include <VBox/VBoxGuestLib.h> 35 35 #include <VBoxGuestInternal.h> 36 37 #ifdef TARGET_NT4 38 /* XP DDK #defines ExFreePool to ExFreePoolWithTag. The latter does not exist on NT4, so... 39 * The same for ExAllocatePool. 40 */ 41 #undef ExAllocatePool 42 #undef ExFreePool 43 #endif 36 44 37 45 /******************************************************************************* … … 478 486 #else 479 487 PVOID pvBalloon; 480 pvBalloon = ExAllocatePool WithTag(PagedPool, VMMDEV_MEMORY_BALLOON_CHUNK_SIZE, 'MBAL');488 pvBalloon = ExAllocatePool(PagedPool, VMMDEV_MEMORY_BALLOON_CHUNK_SIZE); 481 489 if (!pvBalloon) 482 490 { … … 489 497 { 490 498 rc = VERR_NO_MEMORY; 491 ExFreePool WithTag(pvBalloon, 'MBAL');499 ExFreePool(pvBalloon); 492 500 AssertMsgFailed(("IoAllocateMdl %VGv %x failed!!\n", pvBalloon, VMMDEV_MEMORY_BALLOON_CHUNK_SIZE)); 493 501 goto end; … … 504 512 rc = VERR_NO_MEMORY; 505 513 IoFreeMdl (pMdl); 506 ExFreePool WithTag(pvBalloon, 'MBAL');514 ExFreePool(pvBalloon); 507 515 goto end; 508 516 } … … 531 539 #else 532 540 IoFreeMdl (pMdl); 533 ExFreePool WithTag(pvBalloon, 'MBAL');541 ExFreePool(pvBalloon); 534 542 #endif 535 543 goto end; … … 588 596 MmUnlockPages (pMdl); 589 597 IoFreeMdl (pMdl); 590 ExFreePool WithTag(pvBalloon, 'MBAL');598 ExFreePool(pvBalloon); 591 599 #endif 592 600 … … 628 636 { 629 637 pDevExt->MemBalloon.cMaxBalloons = req->u32PhysMemSize; 630 pDevExt->MemBalloon.paMdlMemBalloon = (PMDL *)ExAllocatePool WithTag(PagedPool, req->u32PhysMemSize * sizeof(PMDL), 'MBAL');638 pDevExt->MemBalloon.paMdlMemBalloon = (PMDL *)ExAllocatePool(PagedPool, req->u32PhysMemSize * sizeof(PMDL)); 631 639 Assert(pDevExt->MemBalloon.paMdlMemBalloon); 632 640 if (!pDevExt->MemBalloon.paMdlMemBalloon) … … 670 678 /* Clean up the memory balloon leftovers */ 671 679 VBoxGuestSetBalloonSize(pDevExt, 0); 672 ExFreePool WithTag(pDevExt->MemBalloon.paMdlMemBalloon, 'MBAL');680 ExFreePool(pDevExt->MemBalloon.paMdlMemBalloon); 673 681 pDevExt->MemBalloon.paMdlMemBalloon = NULL; 674 682 }
Note:
See TracChangeset
for help on using the changeset viewer.